Class BitIntegerSet

  • All Implemented Interfaces:
    ReversibleIterable<java.lang.Integer>, java.lang.Iterable<java.lang.Integer>, java.util.Collection<java.lang.Integer>, java.util.Set<java.lang.Integer>

    public class BitIntegerSet
    extends java.lang.Object
    implements java.util.Set<java.lang.Integer>, ReversibleIterable<java.lang.Integer>
    • Field Detail

      • EMPTY_INT

        public static final int[] EMPTY_INT
    • Constructor Detail

      • BitIntegerSet

        public BitIntegerSet()
      • BitIntegerSet

        public BitIntegerSet​(int i)
      • BitIntegerSet

        public BitIntegerSet​(@NotNull
                             java.util.BitSet other)
      • BitIntegerSet

        public BitIntegerSet​(@NotNull
                             BitIntegerSet other)
    • Method Detail

      • cardinality

        public int cardinality()
      • cardinality

        public int cardinality​(int start)
      • cardinality

        public int cardinality​(int start,
                               int end)
      • contains

        public boolean contains​(@Nullable
                                java.lang.Object o)
        Specified by:
        contains in interface java.util.Collection<java.lang.Integer>
        Specified by:
        contains in interface java.util.Set<java.lang.Integer>
      • toArray

        @NotNull
        public java.lang.Object[] toArray()
        Specified by:
        toArray in interface java.util.Collection<java.lang.Integer>
        Specified by:
        toArray in interface java.util.Set<java.lang.Integer>
      • toArray

        @NotNull
        public <T> T[] toArray​(@NotNull
                               T[] array)
        Specified by:
        toArray in interface java.util.Collection<java.lang.Integer>
        Specified by:
        toArray in interface java.util.Set<java.lang.Integer>
      • add

        public boolean add​(@NotNull
                           java.lang.Integer item)
        Specified by:
        add in interface java.util.Collection<java.lang.Integer>
        Specified by:
        add in interface java.util.Set<java.lang.Integer>
      • toArray

        @NotNull
        public int[] toArray​(@Nullable
                             int[] array)
      • toArray

        @NotNull
        public int[] toArray​(@Nullable
                             int[] array,
                             int destinationIndex)
      • remove

        public boolean remove​(@Nullable
                              java.lang.Object o)
        Specified by:
        remove in interface java.util.Collection<java.lang.Integer>
        Specified by:
        remove in interface java.util.Set<java.lang.Integer>
      • containsAll

        public boolean containsAll​(@NotNull
                                   java.util.Collection<?> collection)
        Specified by:
        containsAll in interface java.util.Collection<java.lang.Integer>
        Specified by:
        containsAll in interface java.util.Set<java.lang.Integer>
      • addAll

        public boolean addAll​(int... collection)
      • addAll

        public boolean addAll​(@NotNull
                              int[] collection,
                              int startIndex)
      • addAll

        public boolean addAll​(@NotNull
                              int[] collection,
                              int startIndex,
                              int endIndex)
      • addAll

        public boolean addAll​(@NotNull
                              java.util.Collection<? extends java.lang.Integer> collection)
        Specified by:
        addAll in interface java.util.Collection<java.lang.Integer>
        Specified by:
        addAll in interface java.util.Set<java.lang.Integer>
      • retainAll

        public boolean retainAll​(@NotNull
                                 java.util.Collection<?> collection)
        Specified by:
        retainAll in interface java.util.Collection<java.lang.Integer>
        Specified by:
        retainAll in interface java.util.Set<java.lang.Integer>
      • removeAll

        public boolean removeAll​(@NotNull
                                 java.util.Collection<?> collection)
        Specified by:
        removeAll in interface java.util.Collection<java.lang.Integer>
        Specified by:
        removeAll in interface java.util.Set<java.lang.Integer>
      • forEach

        public void forEach​(@NotNull
                            java.util.function.Consumer<? super java.lang.Integer> consumer)
        Specified by:
        forEach in interface java.lang.Iterable<java.lang.Integer>
      • forEach

        public void forEach​(@NotNull
                            java.util.function.IntConsumer consumer)
      • size

        public int size()
        Specified by:
        size in interface java.util.Collection<java.lang.Integer>
        Specified by:
        size in interface java.util.Set<java.lang.Integer>
      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in interface java.util.Collection<java.lang.Integer>
        Specified by:
        isEmpty in interface java.util.Set<java.lang.Integer>
      • clear

        public void clear()
        Specified by:
        clear in interface java.util.Collection<java.lang.Integer>
        Specified by:
        clear in interface java.util.Set<java.lang.Integer>
      • valueOf

        @NotNull
        public static BitIntegerSet valueOf​(@NotNull
                                            long[] longs)
      • valueOf

        @NotNull
        public static BitIntegerSet valueOf​(@NotNull
                                            java.nio.LongBuffer buffer)
      • valueOf

        @NotNull
        public static BitIntegerSet valueOf​(@NotNull
                                            byte[] bytes)
      • valueOf

        @NotNull
        public static BitIntegerSet valueOf​(@NotNull
                                            java.nio.ByteBuffer buffer)
      • toByteArray

        @NotNull
        public byte[] toByteArray()
      • toLongArray

        @NotNull
        public long[] toLongArray()
      • set

        @NotNull
        public BitIntegerSet set​(int i,
                                 int i1,
                                 boolean b)
      • clear

        @NotNull
        public BitIntegerSet clear​(int i,
                                   int i1)
      • and

        @NotNull
        public BitIntegerSet and​(@NotNull
                                 java.util.BitSet set)
      • or

        @NotNull
        public BitIntegerSet or​(@NotNull
                                java.util.BitSet set)
      • xor

        @NotNull
        public BitIntegerSet xor​(@NotNull
                                 java.util.BitSet set)
      • andNot

        @NotNull
        public BitIntegerSet andNot​(@NotNull
                                    java.util.BitSet set)
      • get

        public boolean get​(int i)
      • nextSetBit

        public int nextSetBit​(int i)
      • nextClearBit

        public int nextClearBit​(int i)
      • previousSetBit

        public int previousSetBit​(int i)
      • previousClearBit

        public int previousClearBit​(int i)
      • intersects

        public boolean intersects​(java.util.BitSet set)
      • bitSet

        @NotNull
        public java.util.BitSet bitSet()
      • iterator

        @NotNull
        public ReversibleIterator<java.lang.Integer> iterator()
        Specified by:
        iterator in interface java.util.Collection<java.lang.Integer>
        Specified by:
        iterator in interface java.lang.Iterable<java.lang.Integer>
        Specified by:
        iterator in interface ReversibleIterable<java.lang.Integer>
        Specified by:
        iterator in interface java.util.Set<java.lang.Integer>