java.lang.Object
io.github.tonywasher.joceanus.gordianknot.api.key.GordianKeyLengths

public final class GordianKeyLengths extends Object
Set of supported keyLengths.
  • Method Details

    • isSupportedLength

      public static boolean isSupportedLength(GordianLength pKeyLength)
      Is this length a supported keyLength?
      Parameters:
      pKeyLength - the length
      Returns:
      true/false
    • iterator

      public static Iterator<GordianLength> iterator()
      Obtain iterator for supported lengths.
      Returns:
      the iterator
    • getIdForKeyLength

      public static int getIdForKeyLength(GordianLength pKeyLength)
      Obtain id for keyLength.
      Parameters:
      pKeyLength - the key length
      Returns:
      the id.
    • getKeyLengthForId

      public static GordianLength getKeyLengthForId(int pId)
      Obtain keyLength for id.
      Parameters:
      pId - the id
      Returns:
      the keyLength