Class HashMapIdObject<E>

    • Constructor Detail

      • HashMapIdObject

        public HashMapIdObject()
    • Method Detail

      • New

        public static final <T> HashMapIdObject<T> New​(int initialSlotLength)
      • size

        public final long size()
        Specified by:
        size in interface Sized
      • isEmpty

        public final boolean isEmpty()
        Specified by:
        isEmpty in interface Sized
      • add

        public final boolean add​(long id,
                                 E object)
      • put

        public final boolean put​(long id,
                                 E object)
      • putGet

        public final E putGet​(long id,
                              E object)
      • get

        public final E get​(long id)
      • getObjects

        public final XList<E> getObjects()
      • iterateValues

        public final int iterateValues​(Consumer<? super E> procedure)
      • optimize

        public final long optimize()
        Optimizes the internal storage and returns the remaining amount of entries.
        Specified by:
        optimize in interface OptimizableCollection
        Returns:
        the amount of entries after the optimization is been completed.
      • iterateKeys

        public final int iterateKeys​(Consumer<? super Long> procedure)
      • iterateIds

        public final int iterateIds​(_longProcedure procedure)
      • clear

        public final void clear()