Package com.stbasarab.componets
Class PunctuationMark
java.lang.Object
com.stbasarab.componets.PunctuationMark
Represents a punctuation mark as a single character.
This class provides methods for equality comparison and hash code generation.
-
Constructor Summary
ConstructorsConstructorDescriptionPunctuationMark(char mark) Constructs a PunctuationMark object from a given character. -
Method Summary
-
Constructor Details
-
PunctuationMark
public PunctuationMark(char mark) Constructs a PunctuationMark object from a given character.- Parameters:
mark- the character representing the punctuation mark
-
-
Method Details
-
equals
Compares this punctuation mark to another object for equality. Two punctuation marks are considered equal if their character values are the same. -
hashCode
-