Class StaticIntMap<T>


  • public final class StaticIntMap<T>
    extends Object
    A statically initialized and immutable map of int -> T.
    Author:
    Philipp Meinen
    • Method Detail

      • get

        public T get​(int key)
        Parameters:
        key -
        Returns:
        The value associated with key, which may be null.
      • getOrElse

        public T getOrElse​(int key,
                           T defaultVal)
        Parameters:
        key -
        Returns:
        The value associated with key, defaultVal otherwise.
      • containsKey

        public boolean containsKey​(int key)
      • size

        public int size()