Record Class Library
java.lang.Object
java.lang.Record
org.geysermc.floodgate.isolation.library.Library
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NonNull StringReturns the value of theartifactIdrecord component.static Library.LibraryBuilderbuilder()static Library.LibraryBuilderbuilder(DependencyInfoLoader info) final booleanIndicates whether some other object is "equal to" this one.filePath()booleanReturns the value of theforceOverriderecord component.groupId()Returns the value of thegroupIdrecord component.final inthashCode()Returns a hash code value for this object.@NonNull Stringid()Returns the value of theidrecord component.path()@NonNull RepositoryReturns the value of therepositoryrecord component.byte[]sha256()Returns the value of thesha256record component.final StringtoString()Returns a string representation of this record class.voidvalidateChecksum(byte[] data) version()Returns the value of theversionrecord component.
-
Constructor Details
-
Library
public Library(@NonNull String id, @NonNull Repository repository, String groupId, @NonNull String artifactId, String version, byte[] sha256, boolean forceOverride) Creates an instance of aLibraryrecord class.- Parameters:
id- the value for theidrecord componentrepository- the value for therepositoryrecord componentgroupId- the value for thegroupIdrecord componentartifactId- the value for theartifactIdrecord componentversion- the value for theversionrecord componentsha256- the value for thesha256record componentforceOverride- the value for theforceOverriderecord component
-
-
Method Details
-
path
-
builder
-
builder
-
filePath
-
validateChecksum
public void validateChecksum(byte[] data) -
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 '=='. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
repository
Returns the value of therepositoryrecord component.- Returns:
- the value of the
repositoryrecord component
-
groupId
Returns the value of thegroupIdrecord component.- Returns:
- the value of the
groupIdrecord component
-
artifactId
Returns the value of theartifactIdrecord component.- Returns:
- the value of the
artifactIdrecord component
-
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-
sha256
public byte[] sha256()Returns the value of thesha256record component.- Returns:
- the value of the
sha256record component
-
forceOverride
public boolean forceOverride()Returns the value of theforceOverriderecord component.- Returns:
- the value of the
forceOverriderecord component
-