Record Class FileNameImpl
java.lang.Object
java.lang.Record
com.thewinterframework.paper.yaml.FileNameImpl
- All Implemented Interfaces:
Annotation
-
Constructor Summary
ConstructorsConstructorDescriptionFileNameImpl(String value) Creates an instance of aFileNameImplrecord class. -
Method Summary
Modifier and TypeMethodDescriptionClass<? extends Annotation> booleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.
-
Constructor Details
-
FileNameImpl
Creates an instance of aFileNameImplrecord class.- Parameters:
value- the value for thevaluerecord component
-
-
Method Details
-
annotationType
- Specified by:
annotationTypein interfaceAnnotation
-
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 withObjects::equals(Object,Object).- Specified by:
equalsin interfaceAnnotation- Specified by:
equalsin classRecord- Parameters:
o- the object with which to compare- Returns:
trueif this object is the same as theoargument;falseotherwise.
-
hashCode
public int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components.- Specified by:
hashCodein interfaceAnnotation- Specified by:
hashCodein classRecord- Returns:
- a hash code value for this object
-
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.- Specified by:
toStringin interfaceAnnotation- Specified by:
toStringin classRecord- Returns:
- a string representation of this object
-
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-