Class Subprint

    • Constructor Detail

      • Subprint

        public Subprint()
      • Subprint

        public Subprint​(SubprintId subprintId)
      • Subprint

        public Subprint​(int value)
      • Subprint

        public Subprint​(int value,
                        int sequenceNumber)
      • Subprint

        public Subprint​(int value,
                        short sequenceNumber)
    • Method Detail

      • getValue

        public int getValue()
      • getSong

        public Song getSong()
      • setSong

        public void setSong​(Song song)
      • getSequenceNumber

        public short getSequenceNumber()
      • setSequenceNumber

        public void setSequenceNumber​(short sequenceNumber)
      • samebits

        public int samebits​(Subprint that)
        Compares two subprints and returns the number of identical bits.
        Parameters:
        that - another SubPrint
        Returns:
        number of identical bits
      • subsample

        public static List<Subprint> subsample​(List<Subprint> subprints)
        Sub-samples the full list of subprints. Only important subprints are kept.
        Parameters:
        subprints - subprints
        Returns:
        important sub-prints
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object