- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 113 for hoconstant (0.15 sec)
-
guava-tests/test/com/google/common/util/concurrent/FuturesTest.java
* See the License for the specific language governing permissions and * limitations under the License. */ package com.google.common.util.concurrent; import static com.google.common.base.Functions.constant; import static com.google.common.base.Functions.identity; import static com.google.common.base.Throwables.propagateIfInstanceOf; import static com.google.common.collect.Iterables.getOnlyElement;
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Tue Feb 20 17:00:05 GMT 2024 - 144.5K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ImmutableMap.java
"Multiple entries with same " + conflictDescription + ": " + entry1 + " and " + entry2); } /** * A builder for creating immutable map instances, especially {@code public static final} maps * ("constant maps"). Example: * * <pre>{@code * static final ImmutableMap<String, Integer> WORD_TO_INT = * new ImmutableMap.Builder<String, Integer>() * .put("one", 1) * .put("two", 2)
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed May 01 18:44:57 GMT 2024 - 41.7K bytes - Viewed (0) -
guava-testlib/test/com/google/common/testing/ClassSanityTesterTest.java
// oneConstantOnly doesn't matter since it's not nullable and can be only 1 value. @SuppressWarnings("unused") OneConstantEnum oneConstantOnly, // noConstant doesn't matter since it can only be null @SuppressWarnings("unused") @Nullable NoConstantEnum noConstant) { return new GoodEquals(a, b); } // instance method ignored public Object badIgnored() { return new BadEquals(); }
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Thu Nov 16 15:12:31 GMT 2023 - 36.3K bytes - Viewed (0) -
guava/src/com/google/common/collect/ImmutableSortedMap.java
return new Builder<>(Ordering.<K>natural().reverse()); } /** * A builder for creating immutable sorted map instances, especially {@code public static final} * maps ("constant maps"). Example: * * <pre>{@code * static final ImmutableSortedMap<Integer, String> INT_TO_WORD = * new ImmutableSortedMap.Builder<Integer, String>(Ordering.natural()) * .put(1, "one")
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Thu Feb 22 21:19:52 GMT 2024 - 50.3K bytes - Viewed (0) -
guava/src/com/google/common/cache/LocalCache.java
/** * Returns true if a new value is currently loading, regardless of whether there is an existing * value. It is assumed that the return value of this method is constant for any given * ValueReference instance. */ boolean isLoading(); /** * Returns true if this reference contains an active value, meaning one that is still considered
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Thu Feb 22 17:40:56 GMT 2024 - 150.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/cache/TestingWeighers.java
} static final class ConstantWeigher implements Weigher<Object, Object> { private final int constant; ConstantWeigher(int constant) { this.constant = constant; } @Override public int weigh(Object key, Object value) { return constant; } } static final class IntKeyWeigher implements Weigher<Integer, Object> { @Override
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Mon Dec 04 17:37:03 GMT 2017 - 1.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/cache/TestingCacheLoaders.java
return count.get(); } } static final class ConstantLoader<K, V> extends CacheLoader<K, V> { private final V constant; ConstantLoader(V constant) { this.constant = constant; } @Override public V load(K key) { return constant; } } /** * Returns a {@code new Object()} for every request, and increments a counter for every request.
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Wed May 09 15:17:25 GMT 2018 - 4.9K bytes - Viewed (0) -
android/guava/src/com/google/common/base/Charsets.java
* * <p><b>Java 7+ users:</b> this constant should be treated as deprecated; use {@link * java.nio.charset.StandardCharsets#ISO_8859_1} instead. * */ public static final Charset ISO_8859_1 = Charset.forName("ISO-8859-1"); /** * UTF-8: eight-bit UCS Transformation Format. * * <p><b>Java 7+ users:</b> this constant should be treated as deprecated; use {@link
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Feb 15 16:12:13 GMT 2024 - 3.8K bytes - Viewed (0) -
android/guava/src/com/google/common/base/Enums.java
throw new AssertionError(impossible); } } /** * Returns an optional enum constant for the given type, using {@link Enum#valueOf}. If the * constant does not exist, {@link Optional#absent} is returned. A common use case is for parsing * user input or falling back to a default enum constant. For example, {@code * Enums.getIfPresent(Country.class, countryInput).or(Country.DEFAULT);} * * @since 12.0
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Fri May 26 11:56:44 GMT 2023 - 5K bytes - Viewed (0) -
android/guava/src/com/google/common/base/CharMatcher.java
* 8 */ // Constant matcher factory methods /** * Matches any character. * * @since 19.0 (since 1.0 as constant {@code ANY}) */ public static CharMatcher any() { return Any.INSTANCE; } /** * Matches no characters. * * @since 19.0 (since 1.0 as constant {@code NONE}) */ public static CharMatcher none() {
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Fri Feb 09 15:49:48 GMT 2024 - 53.7K bytes - Viewed (0)