Record Class HumanResource.Stats
java.lang.Object
java.lang.Record
io.github.hglabplh_tech.reflect.clojure.api.example.annot_rec.HumanResource.Stats
- Enclosing interface:
- HumanResource
public static record HumanResource.Stats(HumanResource.Statistics statsType, Double average, Double total)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionStats(HumanResource.Statistics statsType, Double average, Double total) Creates an instance of aStatsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionaverage()Returns the value of theaveragerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thestatsTyperecord component.final StringtoString()Returns a string representation of this record class.total()Returns the value of thetotalrecord component.
-
Constructor Details
-
Stats
Creates an instance of aStatsrecord class.- Parameters:
statsType- the value for thestatsTyperecord componentaverage- the value for theaveragerecord componenttotal- the value for thetotalrecord component
-
-
Method Details
-
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 withObjects::equals(Object,Object). -
statsType
Returns the value of thestatsTyperecord component.- Returns:
- the value of the
statsTyperecord component
-
average
Returns the value of theaveragerecord component.- Returns:
- the value of the
averagerecord component
-
total
Returns the value of thetotalrecord component.- Returns:
- the value of the
totalrecord component
-