Class Short2IntMaps.Singleton

All Implemented Interfaces:
it.unimi.dsi.fastutil.Function<Short,Integer>, it.unimi.dsi.fastutil.shorts.Short2IntFunction, Short2IntMap, Serializable, Cloneable, Function<Short,Integer>, IntUnaryOperator, Map<Short,Integer>
Direct Known Subclasses:
Short2IntSortedMaps.Singleton
Enclosing class:
Short2IntMaps

public static class Short2IntMaps.Singleton extends Short2IntFunctions.Singleton implements Short2IntMap, Serializable, Cloneable
An immutable class representing a type-specific singleton map.

This class may be useful to implement your own in case you subclass a type-specific map.

See Also:
  • Field Details

    • entries

      protected transient it.unimi.dsi.fastutil.objects.ObjectSet<Short2IntMap.Entry> entries
    • keys

      protected transient it.unimi.dsi.fastutil.shorts.ShortSet keys
    • values

      protected transient it.unimi.dsi.fastutil.ints.IntCollection values
  • Constructor Details

    • Singleton

      protected Singleton(short key, int value)
  • Method Details