Record Class Search
java.lang.Object
java.lang.Record
com.portingdeadmods.researchd.utils.Search
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thecaseSensitiverecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanbooleanmatchesExactly(String a, String b) booleanReturns the value of thestripExcessWhitespacesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Search
public Search() -
Search
public Search(boolean stripExcessWhitespaces, boolean caseSensitive) Creates an instance of aSearchrecord class.- Parameters:
stripExcessWhitespaces- the value for thestripExcessWhitespacesrecord componentcaseSensitive- the value for thecaseSensitiverecord component
-
-
Method Details
-
matches
-
matchesExactly
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with '=='. -
stripExcessWhitespaces
public boolean stripExcessWhitespaces()Returns the value of thestripExcessWhitespacesrecord component.- Returns:
- the value of the
stripExcessWhitespacesrecord component
-
caseSensitive
public boolean caseSensitive()Returns the value of thecaseSensitiverecord component.- Returns:
- the value of the
caseSensitiverecord component
-