Class ListWithIntVec

  • Direct Known Subclasses:
    ListWithIntVecIdCode

    public class ListWithIntVec
    extends java.lang.Object
    • Constructor Detail

      • ListWithIntVec

        public ListWithIntVec()
      • ListWithIntVec

        public ListWithIntVec​(int size)
      • ListWithIntVec

        public ListWithIntVec​(int size,
                              int positionInContainer)
        Parameters:
        size - of the integer array
        positionInContainer -
    • Method Detail

      • addBit

        public boolean addBit​(int index)
        Dont't forget to calculate the hash!
        Parameters:
        index -
        Returns:
        false if the bit is already set, true otherwise.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • isBitSet

        public boolean isBitSet​(int index)
      • getBitsSet

        public int getBitsSet()
      • sizeBits

        public int sizeBits()
      • calculateHash

        public void calculateHash()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • get

        public int get​(int index)
      • size

        public int size()
        Returns:
        number of bits set
      • getLengthIntVec

        public int getLengthIntVec()
      • reset

        public void reset()
      • toStringArray

        public java.lang.String toStringArray()
        The array part of the object.
        Returns:
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getPositionInContainer

        public int getPositionInContainer()
      • read

        public static ListWithIntVec read​(java.io.InputStream s)
                                   throws java.io.IOException
        Throws:
        java.io.IOException
      • write2String

        public java.lang.String write2String()
                                      throws java.io.IOException
        Throws:
        java.io.IOException