Record Class RosterStudentsController.OrgRemovalResult
java.lang.Object
java.lang.Record
edu.ucsb.cs156.frontiers.controllers.RosterStudentsController.OrgRemovalResult
- Enclosing class:
RosterStudentsController
-
Constructor Summary
ConstructorsConstructorDescriptionOrgRemovalResult(boolean attempted, boolean successful, String errorMessage) Creates an instance of aOrgRemovalResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theattemptedrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theerrorMessagerecord component.final inthashCode()Returns a hash code value for this object.booleanReturns the value of thesuccessfulrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
OrgRemovalResult
Creates an instance of aOrgRemovalResultrecord class.- Parameters:
attempted- the value for theattemptedrecord componentsuccessful- the value for thesuccessfulrecord componenterrorMessage- the value for theerrorMessagerecord component
-
-
Method Details
-
toString
-
hashCode
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
attempted
public boolean attempted()Returns the value of theattemptedrecord component.- Returns:
- the value of the
attemptedrecord component
-
successful
public boolean successful()Returns the value of thesuccessfulrecord component.- Returns:
- the value of the
successfulrecord component
-
errorMessage
Returns the value of theerrorMessagerecord component.- Returns:
- the value of the
errorMessagerecord component
-