Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for singletonMap (0.23 sec)

  1. src/test/java/org/codelibs/fess/util/QueryStringBuilderTest.java

            final String k = "q";
            assertEquals("", getAsQuery(Collections.singletonMap(k, new String[] { "" })));
            assertEquals("aaa", getAsQuery(Collections.singletonMap(k, new String[] { "aaa" })));
            assertEquals("aaa bbb", getAsQuery(Collections.singletonMap(k, new String[] { "aaa bbb" })));
            assertEquals("aaa bbb ccc", getAsQuery(Collections.singletonMap(k, new String[] { "aaa bbb", "ccc" })));
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 7K bytes
    - Viewed (0)
  2. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/SingletonImmutableBiMap.java

      SingletonImmutableBiMap(K key, V value) {
        super(Collections.singletonMap(checkNotNull(key), checkNotNull(value)));
        this.singleKey = key;
        this.singleValue = value;
      }
    
      private SingletonImmutableBiMap(K key, V value, SingletonImmutableBiMap<V, K> inverse) {
        super(Collections.singletonMap(checkNotNull(key), checkNotNull(value)));
        this.singleKey = key;
        this.singleValue = value;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 23 18:43:40 GMT 2024
    - 2.1K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/Challenge.kt

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    package okhttp3
    
    import java.nio.charset.Charset
    import java.util.Collections.singletonMap
    import java.util.Collections.unmodifiableMap
    import java.util.Locale.US
    import kotlin.text.Charsets.ISO_8859_1
    import okhttp3.internal.commonEquals
    import okhttp3.internal.commonHashCode
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.5K bytes
    - Viewed (0)
  4. maven-core/src/test/java/org/apache/maven/toolchain/DefaultToolchainTest.java

            ToolchainModel model = new ToolchainModel();
            model.setType("TYPE");
            DefaultToolchain toolchain = newDefaultToolchain(model);
    
            assertFalse(toolchain.matchesRequirements(Collections.singletonMap("name", "John Doe")));
            verify(logger).debug("Toolchain {} is missing required property: {}", toolchain, "name");
        }
    
        @Test
        void testNonMatchingRequirementProperty() {
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Fri Sep 22 09:07:17 GMT 2023
    - 4.9K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/ImmutableClassToInstanceMapTest.java

      }
    
      public void testCopyOf_map_nulls() {
        Map<Class<? extends Number>, Number> nullKey = Collections.singletonMap(null, (Number) 1.0);
        assertThrows(NullPointerException.class, () -> ImmutableClassToInstanceMap.copyOf(nullKey));
    
        Map<? extends Class<? extends Number>, Number> nullValue =
            Collections.singletonMap(Number.class, null);
        assertThrows(NullPointerException.class, () -> ImmutableClassToInstanceMap.copyOf(nullValue));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 7.4K bytes
    - Viewed (0)
  6. api/maven-api-model/src/main/java/org/apache/maven/api/model/InputLocation.java

        public InputLocation(InputSource source) {
            this.lineNumber = -1;
            this.columnNumber = -1;
            this.source = source;
            this.locations = Collections.singletonMap(0, this);
        }
    
        public InputLocation(int lineNumber, int columnNumber) {
            this(lineNumber, columnNumber, null, null);
        }
    
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Tue Sep 05 16:06:44 GMT 2023
    - 5.9K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/ImmutableClassToInstanceMapTest.java

      }
    
      public void testCopyOf_map_nulls() {
        Map<Class<? extends Number>, Number> nullKey = Collections.singletonMap(null, (Number) 1.0);
        assertThrows(NullPointerException.class, () -> ImmutableClassToInstanceMap.copyOf(nullKey));
    
        Map<? extends Class<? extends Number>, Number> nullValue =
            Collections.singletonMap(Number.class, null);
        assertThrows(NullPointerException.class, () -> ImmutableClassToInstanceMap.copyOf(nullValue));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 7.4K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/google/ListMultimapAsMapTester.java

        assertTrue(multimap().asMap().values().remove(Collections.singletonList(v0())));
        assertEquals(2, multimap().size());
        assertEquals(
            Collections.singletonMap(k0(), Lists.newArrayList(v0(), v3())), multimap().asMap());
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/AbstractMapEntryTest.java

          public V getValue() {
            return value;
          }
        };
      }
    
      private static <K extends @Nullable Object, V extends @Nullable Object> Entry<K, V> control(
          K key, V value) {
        return Collections.singletonMap(key, value).entrySet().iterator().next();
      }
    
      public void testToString() {
        assertEquals("foo=1", entry("foo", 1).toString());
      }
    
      public void testToStringNull() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 10:16:44 GMT 2024
    - 3.1K bytes
    - Viewed (0)
  10. build-logic/documentation/src/main/groovy/gradlebuild/docs/DecorateReleaseNotes.java

                parameters.put("jqueryFiles", getJquery().getFiles());
    
                copySpec.filter(parameters, ReleaseNotesTransformer.class);
                copySpec.filter(Collections.singletonMap("tokens", getReplacementTokens().get()), ReplaceTokens.class);
            });
        }
    Java
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Tue Sep 28 06:35:15 GMT 2021
    - 4.1K bytes
    - Viewed (0)
Back to top