Record Class OrasPlatformParameterDefinition.PlatformWrapper
java.lang.Object
java.lang.Record
io.jenkins.plugins.oras.parameter.OrasPlatformParameterDefinition.PlatformWrapper
- Record Components:
os- The OSarchitecture- The architecturevariant- The variant
- All Implemented Interfaces:
Serializable
- Enclosing class:
OrasPlatformParameterDefinition
public static record OrasPlatformParameterDefinition.PlatformWrapper(String os, String architecture, String variant, String digest)
extends Record
implements Serializable
Wrap a platform for Jelly views and serialization
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionPlatformWrapper(String os, String architecture, String variant, String digest) Creates an instance of aPlatformWrapperrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thearchitecturerecord component.digest()Returns the value of thedigestrecord component.final booleanIndicates whether some other object is "equal to" this one.getOs()final inthashCode()Returns a hash code value for this object.of(land.oras.ManifestDescriptor manifestDescriptor) of(land.oras.Platform platform) os()Returns the value of theosrecord component.select(List<OrasPlatformParameterDefinition.PlatformWrapper> values, String value) toString()Returns a string representation of this record class.variant()Returns the value of thevariantrecord component.
-
Constructor Details
-
PlatformWrapper
Creates an instance of aPlatformWrapperrecord class.- Parameters:
os- the value for theosrecord componentarchitecture- the value for thearchitecturerecord componentvariant- the value for thevariantrecord componentdigest- the value for thedigestrecord component
-
-
Method Details
-
getOs
-
getArchitecture
-
getVariant
-
getDigest
-
of
-
of
-
of
public static OrasPlatformParameterDefinition.PlatformWrapper of(land.oras.ManifestDescriptor manifestDescriptor) -
select
public static OrasPlatformParameterDefinition.PlatformWrapper select(List<OrasPlatformParameterDefinition.PlatformWrapper> values, String value) -
getPlatformIdentifier
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
os
Returns the value of theosrecord component.- Returns:
- the value of the
osrecord component
-
architecture
Returns the value of thearchitecturerecord component.- Returns:
- the value of the
architecturerecord component
-
variant
Returns the value of thevariantrecord component.- Returns:
- the value of the
variantrecord component
-
digest
Returns the value of thedigestrecord component.- Returns:
- the value of the
digestrecord component
-