Class AbstractMutableBooleanValuesMap

    • Constructor Detail

      • AbstractMutableBooleanValuesMap

        public AbstractMutableBooleanValuesMap()
    • Method Detail

      • getOccupiedWithData

        protected abstract int getOccupiedWithData()
      • setSentinelValuesNull

        protected abstract void setSentinelValuesNull()
      • getEmptyValue

        protected abstract boolean getEmptyValue()
      • getValueAtIndex

        protected abstract boolean getValueAtIndex​(int index)
      • getTableSize

        protected abstract int getTableSize()
      • isNonSentinelAtIndex

        protected abstract boolean isNonSentinelAtIndex​(int index)
      • addEmptyKeyValue

        protected void addEmptyKeyValue​(boolean value)
      • removeEmptyKey

        protected void removeEmptyKey()
      • addRemovedKeyValue

        protected void addRemovedKeyValue​(boolean value)
      • removeRemovedKey

        protected void removeRemovedKey()
      • contains

        public boolean contains​(boolean value)
        Description copied from interface: BooleanIterable
        Returns true if the value is contained in the BooleanIterable, and false if it is not.
        Specified by:
        contains in interface BooleanIterable
      • containsAll

        public boolean containsAll​(BooleanIterable source)
        Description copied from interface: BooleanIterable
        Returns true if all of the values specified in the source BooleanIterable are contained in the BooleanIterable, and false if they are not.
        Specified by:
        containsAll in interface BooleanIterable
      • forEachValue

        public void forEachValue​(BooleanProcedure procedure)
        Description copied from interface: BooleanValuesMap
        Iterates through each value in this map.
        Specified by:
        forEachValue in interface BooleanValuesMap
        Parameters:
        procedure - the procedure to invoke for each value in this map.
      • chunk

        public RichIterable<BooleanIterable> chunk​(int size)
        Description copied from interface: BooleanIterable
        Partitions elements in fixed size chunks.
        Specified by:
        chunk in interface BooleanIterable
        Parameters:
        size - the number of elements per chunk
        Returns:
        A RichIterable containing BooleanIterables of size size, except the last will be truncated if the elements don't divide evenly.
      • count

        public int count​(BooleanPredicate predicate)
        Description copied from interface: BooleanIterable
        Returns a count of the number of elements in the BooleanIterable that return true for the specified predicate.
        Specified by:
        count in interface BooleanIterable
      • anySatisfy

        public boolean anySatisfy​(BooleanPredicate predicate)
        Description copied from interface: BooleanIterable
        Returns true if any of the elements in the BooleanIterable return true for the specified predicate, otherwise returns false.
        Specified by:
        anySatisfy in interface BooleanIterable
      • allSatisfy

        public boolean allSatisfy​(BooleanPredicate predicate)
        Description copied from interface: BooleanIterable
        Returns true if all of the elements in the BooleanIterable return true for the specified predicate, otherwise returns false.
        Specified by:
        allSatisfy in interface BooleanIterable
      • noneSatisfy

        public boolean noneSatisfy​(BooleanPredicate predicate)
        Description copied from interface: BooleanIterable
        Returns true if none of the elements in the BooleanIterable return true for the specified predicate, otherwise returns false.
        Specified by:
        noneSatisfy in interface BooleanIterable
      • toArray

        public boolean[] toArray()
        Description copied from interface: BooleanIterable
        Converts the BooleanIterable to a primitive boolean array.
        Specified by:
        toArray in interface BooleanIterable
      • toArray

        public boolean[] toArray​(boolean[] array)
        Description copied from interface: BooleanIterable
        Converts the BooleanIterable to a primitive boolean array. If the collection fits into the provided array it is used to store its elements and is returned from the method, otherwise a new array of the appropriate size is allocated and returned. If the iterable is empty, the target array is returned unchanged.
        Specified by:
        toArray in interface BooleanIterable