Interface CompoundSet<C extends Compound>

    • Method Detail

      • getMaxSingleCompoundStringLength

        int getMaxSingleCompoundStringLength()
        Returns the maximum size of a compound String this set holds
      • isCompoundStringLengthEqual

        boolean isCompoundStringLengthEqual()
        Returns true if all String representations of Compounds are of the same length.
      • getCompoundForString

        C getCompoundForString​(java.lang.String string)
        Return null if not recognised. Throw IllegalArgumentException if string is longer than maximum allowed by getStringForCompound(Compound).
      • getStringForCompound

        java.lang.String getStringForCompound​(C compound)
      • compoundsEquivalent

        boolean compoundsEquivalent​(C compoundOne,
                                    C compoundTwo)
      • isValidSequence

        boolean isValidSequence​(Sequence<C> sequence)
      • getEquivalentCompounds

        java.util.Set<C> getEquivalentCompounds​(C compound)
      • hasCompound

        boolean hasCompound​(C compound)
      • getAllCompounds

        java.util.List<C> getAllCompounds()
      • isComplementable

        boolean isComplementable()