Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 32 for Enums (0.18 sec)

  1. android/guava/src/com/google/common/base/package-info.java

     *   <li>{@link Strings}
     * </ul>
     *
     * <h3>Function types</h3>
     *
     * <ul>
     *   <li>{@link Converter}
     *   <li>{@link Equivalence}
     * </ul>
     *
     * <h3>Other</h3>
     *
     * <ul>
     *   <li>{@link Enums}
     *   <li>{@link MoreObjects}
     *   <li>{@link Preconditions}
     *   <li>{@link StandardSystemProperty}
     *   <li>{@link Stopwatch}
     *   <li>{@link Throwables}
     *   <li>{@link Verify}
     * </ul>
     *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Jun 26 16:48:06 GMT 2023
    - 1.8K bytes
    - Viewed (0)
  2. guava/src/com/google/common/base/Platform.java

        return matcher.precomputedInternal();
      }
    
      static <T extends Enum<T>> Optional<T> getEnumIfPresent(Class<T> enumClass, String value) {
        WeakReference<? extends Enum<?>> ref = Enums.getEnumConstants(enumClass).get(value);
        return ref == null ? Optional.<T>absent() : Optional.of(enumClass.cast(ref.get()));
      }
    
      static String formatCompact4Digits(double value) {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Jun 26 17:58:45 GMT 2023
    - 3.3K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/TestEnumSetGenerator.java

     * limitations under the License.
     */
    
    package com.google.common.collect.testing;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.collect.testing.SampleElements.Enums;
    import java.util.Collections;
    import java.util.List;
    import java.util.Set;
    
    /**
     * An abstract TestSetGenerator for generating sets containing enum values.
     *
     * @author Kevin Bourrillion
     */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 1.7K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/base/Platform.java

        return matcher.precomputedInternal();
      }
    
      static <T extends Enum<T>> Optional<T> getEnumIfPresent(Class<T> enumClass, String value) {
        WeakReference<? extends Enum<?>> ref = Enums.getEnumConstants(enumClass).get(value);
        /*
         * We use `fromNullable` instead of `of` because `WeakReference.get()` has a nullable return
         * type.
         *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 15 22:32:14 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/google/TestEnumMultisetGenerator.java

    import com.google.common.collect.Multiset;
    import com.google.common.collect.testing.AnEnum;
    import com.google.common.collect.testing.SampleElements;
    import com.google.common.collect.testing.SampleElements.Enums;
    import java.util.Collections;
    import java.util.List;
    
    /**
     * An abstract {@code TestMultisetGenerator} for generating multisets containing enum values.
     *
     * @author Jared Levy
     */
    @GwtCompatible
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 1.9K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/base/Converter.java

     *
     * <h3>Common ways to use</h3>
     *
     * <p>Getting a converter:
     *
     * <ul>
     *   <li>Use a provided converter implementation, such as {@link Enums#stringConverter}, {@link
     *       com.google.common.primitives.Ints#stringConverter Ints.stringConverter} or the {@linkplain
     *       #reverse reverse} views of these.
     *   <li>Convert between specific preset values using {@link
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 23K bytes
    - Viewed (0)
  7. guava/src/com/google/common/base/package-info.java

     *   <li>{@link Strings}
     * </ul>
     *
     * <h3>Function types</h3>
     *
     * <ul>
     *   <li>{@link Converter}
     *   <li>{@link Equivalence}
     * </ul>
     *
     * <h3>Other</h3>
     *
     * <ul>
     *   <li>{@link Enums}
     *   <li>{@link MoreObjects}
     *   <li>{@link Preconditions}
     *   <li>{@link StandardSystemProperty}
     *   <li>{@link Stopwatch}
     *   <li>{@link Throwables}
     *   <li>{@link Verify}
     * </ul>
     *
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Jun 26 16:48:06 GMT 2023
    - 1.8K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Supplies an arbitrary "default" instance for a wide range of types, often useful in testing
     * utilities.
     *
     * <p>Covers arrays, enums and common types defined in {@code java.lang}, {@code java.lang.reflect},
     * {@code java.io}, {@code java.nio}, {@code java.math}, {@code java.util}, {@code
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 21K bytes
    - Viewed (1)
  9. android/guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Supplies an arbitrary "default" instance for a wide range of types, often useful in testing
     * utilities.
     *
     * <p>Covers arrays, enums and common types defined in {@code java.lang}, {@code java.lang.reflect},
     * {@code java.io}, {@code java.nio}, {@code java.math}, {@code java.util}, {@code
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 20.5K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/MultimapBuilder.java

        return new MultimapBuilderWithKeys<K0>() {
          @SuppressWarnings("unchecked")
          @Override
          <K extends K0, V extends @Nullable Object> Map<K, Collection<V>> createMap() {
            // K must actually be K0, since enums are effectively final
            // (their subclasses are inaccessible)
            return (Map<K, Collection<V>>) new EnumMap<K0, Collection<V>>(keyClass);
          }
        };
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 17.5K bytes
    - Viewed (0)
Back to top