Record Class RepositoryService.RepositoryCreationResult
java.lang.Object
java.lang.Record
edu.ucsb.cs156.frontiers.services.RepositoryService.RepositoryCreationResult
- Enclosing class:
RepositoryService
-
Constructor Summary
ConstructorsConstructorDescriptionRepositoryCreationResult(String repoName, boolean created) Creates an instance of aRepositoryCreationResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleancreated()Returns the value of thecreatedrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.repoName()Returns the value of therepoNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RepositoryCreationResult
Creates an instance of aRepositoryCreationResultrecord class.- Parameters:
repoName- the value for therepoNamerecord componentcreated- the value for thecreatedrecord 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. -
repoName
Returns the value of therepoNamerecord component.- Returns:
- the value of the
repoNamerecord component
-
created
public boolean created()Returns the value of thecreatedrecord component.- Returns:
- the value of the
createdrecord component
-