Record Class PackageInfo
java.lang.Object
java.lang.Record
uk.ac.diamond.daq.bluesky.api.model.PackageInfo
public record PackageInfo(boolean dirty, String location, String name, PackageSource source, String version)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionPackageInfo(boolean dirty, String location, String name, PackageSource source, String version) Creates an instance of aPackageInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleandirty()Returns the value of thedirtyrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.location()Returns the value of thelocationrecord component.name()Returns the value of thenamerecord component.source()Returns the value of thesourcerecord component.final StringtoString()Returns a string representation of this record class.version()Returns the value of theversionrecord component.
-
Constructor Details
-
PackageInfo
public PackageInfo(boolean dirty, String location, String name, PackageSource source, String version) Creates an instance of aPackageInforecord class.- Parameters:
dirty- the value for thedirtyrecord componentlocation- the value for thelocationrecord componentname- the value for thenamerecord componentsource- the value for thesourcerecord componentversion- the value for theversionrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
dirty
public boolean dirty()Returns the value of thedirtyrecord component.- Returns:
- the value of the
dirtyrecord component
-
location
Returns the value of thelocationrecord component.- Returns:
- the value of the
locationrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
source
Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-