Interface ByteSet


public interface ByteSet
Interface for sets of bytes.
  • Method Summary

    Modifier and Type
    Method
    Description
    static Set<Character>
    applyIgnoreCase(Set<Character> set, boolean ignoreCase)
    Creates a copy of the provided set, or returns the same set.
    boolean
    containsKey(byte b)
    Returns true if the set contains the specified byte.
    static ByteSet
    copyOf(Set<Character> set, boolean ignoreCase)
    Creates a new ByteSet from the provided set.
  • Method Details

    • containsKey

      boolean containsKey(byte b)
      Returns true if the set contains the specified byte.
      Parameters:
      b - a byte
      Returns:
      true if the byte is in the set
    • copyOf

      static ByteSet copyOf(Set<Character> set, boolean ignoreCase)
      Creates a new ByteSet from the provided set.
      Parameters:
      set - a set of characters
      ignoreCase - whether the ByteSet shall ignore the case of the characters
      Returns:
      a new ByteSet instance
    • applyIgnoreCase

      static Set<Character> applyIgnoreCase(Set<Character> set, boolean ignoreCase)
      Creates a copy of the provided set, or returns the same set.

      If ignoreCase is set to true, the copy will contain an upper and lower case character for each character in the provided set.

      Parameters:
      set - a set of characters
      ignoreCase - whether the copy of the set shall contain upper and lower case characters from the provided set
      Returns:
      a new set if ignoreCase is false, otherwise a copy of the set