Record Class RepositoryStateReader.PackageState
java.lang.Object
java.lang.Record
io.github.joke.conventionalversion.git.RepositoryStateReader.PackageState
- Enclosing class:
RepositoryStateReader
public static record RepositoryStateReader.PackageState(ReleasePackage declared, RepositoryState state)
extends Record
One package and the repository facts its own range yielded.
-
Constructor Summary
ConstructorsConstructorDescriptionPackageState(ReleasePackage declared, RepositoryState state) Creates an instance of aPackageStaterecord class. -
Method Summary
Modifier and TypeMethodDescriptiondeclared()Returns the value of thedeclaredrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.state()Returns the value of thestaterecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PackageState
Creates an instance of aPackageStaterecord class.- Parameters:
declared- the value for thedeclaredrecord componentstate- the value for thestaterecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
declared
Returns the value of thedeclaredrecord component.- Returns:
- the value of the
declaredrecord component
-
state
Returns the value of thestaterecord component.- Returns:
- the value of the
staterecord component
-