Class CharArrayObjectMap<T>

  • All Implemented Interfaces:
    java.lang.Cloneable

    public class CharArrayObjectMap<T>
    extends CharTable
    Restriction:
    This class is not intended to be subclassed by clients.
    • Field Detail

      • EMPTY_MAP

        public static final CharArrayObjectMap<?> EMPTY_MAP
        An empty immutable CharArrayObjectMap.
    • Constructor Detail

      • CharArrayObjectMap

        public CharArrayObjectMap​(int initialSize)
    • Method Detail

      • put

        public T put​(char[] key,
                     int start,
                     int length,
                     T value)
      • put

        public final T put​(char[] key,
                           T value)
      • get

        public final T get​(char[] key,
                           int start,
                           int length)
      • get

        public final T get​(char[] key)
      • getAt

        public final T getAt​(int i)
      • remove

        public final T remove​(char[] key,
                              int start,
                              int length)
      • clone

        public java.lang.Object clone()
        Overrides:
        clone in class CharTable
      • resize

        protected void resize​(int size)
        Overrides:
        resize in class CharTable
      • partition

        protected int partition​(java.util.Comparator<java.lang.Object> c,
                                int p,
                                int r)
        Overrides:
        partition in class HashTable
      • valueArray

        public java.lang.Object[] valueArray()
      • valueArray

        public java.lang.Object[] valueArray​(java.lang.Class<?> clazz)
      • values

        public java.util.Collection<T> values()
        Returns a Collection view of the values contained in this map. The collection is backed by the map, so changes to the map are reflected in the collection, and vice-versa.
        Since:
        6.0
      • containsValue

        public boolean containsValue​(java.lang.Object v)
        Checks if the map values contain the given object.
        Since:
        6.0
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object