Class HashMapObjectId<T>

    • Constructor Detail

      • HashMapObjectId

        public HashMapObjectId()
    • Method Detail

      • New

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

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

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

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

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

        public long putGet​(T object,
                           long id)
      • get

        public long get​(T object)
      • getObjects

        public XList<T> getObjects()
      • iterateObjects

        public int iterateObjects​(Consumer<? super T> procedure)
      • optimize

        public 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.
      • iterateIds

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

        public void clear()