Package com.smeup.kokos.sdk.util
Record Class LibraryVersionDumpMgr.SourceLibraryVersion
java.lang.Object
java.lang.Record
com.smeup.kokos.sdk.util.LibraryVersionDumpMgr.SourceLibraryVersion
- Record Components:
name- the name of the source librarysourceLibrary- the source library object containing path and other detailsbranch- the branch name of the source libraryrevision- the revision identifier of the source libraryuncommittedChanges- a flag indicating whether the repo contains uncommitted changesseenAt- the timestamp when the source library was last seen
- Enclosing class:
LibraryVersionDumpMgr
public static record LibraryVersionDumpMgr.SourceLibraryVersion(String name, SourceLibrary sourceLibrary, String branch, String revision, boolean uncommittedChanges, Date seenAt)
extends Record
Represents the version information of a source library.
-
Constructor Summary
ConstructorsConstructorDescriptionSourceLibraryVersion(String name, SourceLibrary sourceLibrary, String branch, String revision, boolean uncommittedChanges) Constructs a `SourceLibraryVersion` with the current timestamp as the `seenAt` value.SourceLibraryVersion(String name, SourceLibrary sourceLibrary, String branch, String revision, boolean uncommittedChanges, Date seenAt) Creates an instance of aSourceLibraryVersionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbranch()Returns the value of thebranchrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.revision()Returns the value of therevisionrecord component.seenAt()Returns the value of theseenAtrecord component.Returns the value of thesourceLibraryrecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of theuncommittedChangesrecord component.
-
Constructor Details
-
SourceLibraryVersion
public SourceLibraryVersion(String name, SourceLibrary sourceLibrary, String branch, String revision, boolean uncommittedChanges) Constructs a `SourceLibraryVersion` with the current timestamp as the `seenAt` value.- Parameters:
name- the name of the source librarysourceLibrary- the source library object containing path and other detailsbranch- the branch name of the source libraryrevision- the revision identifier of the source libraryuncommittedChanges- a flag indicating whether the repo contains uncommitted changes
-
SourceLibraryVersion
public SourceLibraryVersion(String name, SourceLibrary sourceLibrary, String branch, String revision, boolean uncommittedChanges, Date seenAt) Creates an instance of aSourceLibraryVersionrecord class.- Parameters:
name- the value for thenamerecord componentsourceLibrary- the value for thesourceLibraryrecord componentbranch- the value for thebranchrecord componentrevision- the value for therevisionrecord componentuncommittedChanges- the value for theuncommittedChangesrecord componentseenAt- the value for theseenAtrecord 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 '=='. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
sourceLibrary
Returns the value of thesourceLibraryrecord component.- Returns:
- the value of the
sourceLibraryrecord component
-
branch
Returns the value of thebranchrecord component.- Returns:
- the value of the
branchrecord component
-
revision
Returns the value of therevisionrecord component.- Returns:
- the value of the
revisionrecord component
-
uncommittedChanges
public boolean uncommittedChanges()Returns the value of theuncommittedChangesrecord component.- Returns:
- the value of the
uncommittedChangesrecord component
-
seenAt
Returns the value of theseenAtrecord component.- Returns:
- the value of the
seenAtrecord component
-