Interface CharSet
- All Known Implementing Classes:
CharSetOfNone,FormatCharSet
public interface CharSet
Interface for sets of characters.
-
Method Summary
Modifier and TypeMethodDescriptionapplyIgnoreCase(Set<Character> set, boolean ignoreCase) Creates a copy of the provided set, or returns the same set.booleancontainsKey(char ch) Returns true if the set contains the specified character.static CharSetCreates a newCharSetfrom the provided set.
-
Method Details
-
containsKey
boolean containsKey(char ch) Returns true if the set contains the specified character.- Parameters:
ch- a character- Returns:
- true if the byte is in the set
-
copyOf
-
applyIgnoreCase
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
-