Package edu.ucsb.cs156.frontiers.models
Record Class LoadResult
java.lang.Object
java.lang.Record
edu.ucsb.cs156.frontiers.models.LoadResult
-
Constructor Summary
ConstructorsConstructorDescriptionLoadResult(Integer created, Integer updated, Integer dropped, List<RosterStudent> rejected) Creates an instance of aLoadResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncreated()Returns the value of thecreatedrecord component.dropped()Returns the value of thedroppedrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.rejected()Returns the value of therejectedrecord component.final StringtoString()Returns a string representation of this record class.updated()Returns the value of theupdatedrecord component.
-
Constructor Details
-
LoadResult
Creates an instance of aLoadResultrecord class.- Parameters:
created- the value for thecreatedrecord componentupdated- the value for theupdatedrecord componentdropped- the value for thedroppedrecord componentrejected- the value for therejectedrecord 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). -
created
Returns the value of thecreatedrecord component.- Returns:
- the value of the
createdrecord component
-
updated
Returns the value of theupdatedrecord component.- Returns:
- the value of the
updatedrecord component
-
dropped
Returns the value of thedroppedrecord component.- Returns:
- the value of the
droppedrecord component
-
rejected
Returns the value of therejectedrecord component.- Returns:
- the value of the
rejectedrecord component
-