Interface ByteSet
-
- All Known Implementing Classes:
ByteSetOfFew,ByteSetOfNone,ByteSetOfOne,ByteToIntMap
public interface ByteSetInterface for sets of bytes.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static java.util.Set<java.lang.Character>applyIgnoreCase(java.util.Set<java.lang.Character> set, boolean ignoreCase)Creates a copy of the provided set, or returns the same set.booleancontainsKey(byte b)Returns true if the set contains the specified byte.static ByteSetcopyOf(java.util.Set<java.lang.Character> set, boolean ignoreCase)Creates a newByteSetfrom the provided set.
-
-
-
Method Detail
-
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(java.util.Set<java.lang.Character> set, boolean ignoreCase)
Creates a newByteSetfrom the provided set.
-
applyIgnoreCase
static java.util.Set<java.lang.Character> applyIgnoreCase(java.util.Set<java.lang.Character> set, boolean ignoreCase)Creates a copy of the provided set, or returns the same set.If
ignoreCaseis 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 charactersignoreCase- whether the copy of the set shall contain upper and lower case characters from the provided set- Returns:
- a new set if
ignoreCaseis false, otherwise a copy of the set
-
-