Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for EnumMap (0.1 sec)

  1. guava/src/com/google/common/collect/EnumBiMap.java

    import com.google.common.annotations.J2ktIncompatible;
    import java.io.IOException;
    import java.io.ObjectInputStream;
    import java.io.ObjectOutputStream;
    import java.util.EnumMap;
    import java.util.Map;
    
    /**
     * A {@code BiMap} backed by two {@code EnumMap} instances. Null keys and values are not permitted.
     * An {@code EnumBiMap} and its inverse are both serializable.
     *
     * <p>See the Guava User Guide article on <a href=
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Aug 24 01:40:03 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/EnumBiMap.java

    import com.google.common.annotations.J2ktIncompatible;
    import java.io.IOException;
    import java.io.ObjectInputStream;
    import java.io.ObjectOutputStream;
    import java.util.EnumMap;
    import java.util.Map;
    
    /**
     * A {@code BiMap} backed by two {@code EnumMap} instances. Null keys and values are not permitted.
     * An {@code EnumBiMap} and its inverse are both serializable.
     *
     * <p>See the Guava User Guide article on <a href=
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Aug 24 01:40:03 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/ImmutableEnumMap.java

    import java.io.InvalidObjectException;
    import java.io.ObjectInputStream;
    import java.io.Serializable;
    import java.util.EnumMap;
    import javax.annotation.CheckForNull;
    
    /**
     * Implementation of {@link ImmutableMap} backed by a non-empty {@link java.util.EnumMap}.
     *
     * @author Louis Wasserman
     */
    @GwtCompatible(serializable = true, emulated = true)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/ImmutableEnumMap.java

    import java.io.InvalidObjectException;
    import java.io.ObjectInputStream;
    import java.io.Serializable;
    import java.util.EnumMap;
    import java.util.Spliterator;
    import java.util.function.BiConsumer;
    import javax.annotation.CheckForNull;
    
    /**
     * Implementation of {@link ImmutableMap} backed by a non-empty {@link java.util.EnumMap}.
     *
     * @author Louis Wasserman
     */
    @GwtCompatible(serializable = true, emulated = true)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/opensearch/extension/analysis/ReloadableKuromojiTokenizerFactory.java

                            userFSTReaderField.set(tokenizer, userFst.getBytesReader());
                            @SuppressWarnings("unchecked")
                            final EnumMap<Type, Dictionary> dictionaryMap = (EnumMap<Type, Dictionary>) dictionaryMapField.get(tokenizer);
                            dictionaryMap.put(Type.USER, userDictionary);
                        } catch (final Exception e) {
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/google/MapGenerators.java

        }
      }
    
      public static class ImmutableMapCopyOfEnumMapGenerator extends TestEnumMapGenerator {
        @Override
        protected Map<AnEnum, String> create(Entry<AnEnum, String>[] entries) {
          EnumMap<AnEnum, String> map = new EnumMap<>(AnEnum.class);
          for (Entry<AnEnum, String> entry : entries) {
            map.put(entry.getKey(), entry.getValue());
          }
          return ImmutableMap.copyOf(map);
        }
    
        @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/MultimapBuilder.java

    import com.google.common.annotations.GwtCompatible;
    import com.google.common.base.Supplier;
    import java.io.Serializable;
    import java.util.ArrayList;
    import java.util.Collection;
    import java.util.Comparator;
    import java.util.EnumMap;
    import java.util.EnumSet;
    import java.util.LinkedList;
    import java.util.List;
    import java.util.Map;
    import java.util.Set;
    import java.util.SortedSet;
    import java.util.TreeMap;
    import java.util.TreeSet;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/TestsForMapsInJavaUtil.java

                  @Override
                  protected Map<AnEnum, String> create(Entry<AnEnum, String>[] entries) {
                    return populate(new EnumMap<AnEnum, String>(AnEnum.class), entries);
                  }
                })
            .named("EnumMap")
            .withFeatures(
                MapFeature.GENERAL_PURPOSE,
                MapFeature.ALLOWS_NULL_VALUES,
                MapFeature.RESTRICTS_KEYS,
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 17K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/collect/testing/TestsForMapsInJavaUtil.java

                  @Override
                  protected Map<AnEnum, String> create(Entry<AnEnum, String>[] entries) {
                    return populate(new EnumMap<AnEnum, String>(AnEnum.class), entries);
                  }
                })
            .named("EnumMap")
            .withFeatures(
                MapFeature.GENERAL_PURPOSE,
                MapFeature.ALLOWS_NULL_VALUES,
                MapFeature.RESTRICTS_KEYS,
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 21.6K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/CollectCollectors.java

        private final BinaryOperator<V> mergeFunction;
        @CheckForNull private EnumMap<K, V> map = null;
    
        EnumMapAccumulator(BinaryOperator<V> mergeFunction) {
          this.mergeFunction = mergeFunction;
        }
    
        void put(K key, V value) {
          if (map == null) {
            map = new EnumMap<>(singletonMap(key, value));
          } else {
            map.merge(key, value, mergeFunction);
          }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 17.1K bytes
    - Viewed (0)
Back to top