Record Class ResourceProfile<T>
java.lang.Object
java.lang.Record
gov.nasa.jpl.aerie.merlin.driver.resources.ResourceProfile<T>
public record ResourceProfile<T>(gov.nasa.jpl.aerie.merlin.protocol.types.ValueSchema schema, List<ProfileSegment<T>> segments)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionResourceProfile(gov.nasa.jpl.aerie.merlin.protocol.types.ValueSchema schema, List<ProfileSegment<T>> segments) Creates an instance of aResourceProfilerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static <T> ResourceProfile<T> of(gov.nasa.jpl.aerie.merlin.protocol.types.ValueSchema schema, List<ProfileSegment<T>> segments) gov.nasa.jpl.aerie.merlin.protocol.types.ValueSchemaschema()Returns the value of theschemarecord component.segments()Returns the value of thesegmentsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ResourceProfile
public ResourceProfile(gov.nasa.jpl.aerie.merlin.protocol.types.ValueSchema schema, List<ProfileSegment<T>> segments) Creates an instance of aResourceProfilerecord class.- Parameters:
schema- the value for theschemarecord componentsegments- the value for thesegmentsrecord component
-
-
Method Details
-
of
public static <T> ResourceProfile<T> of(gov.nasa.jpl.aerie.merlin.protocol.types.ValueSchema schema, List<ProfileSegment<T>> segments) -
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). -
schema
public gov.nasa.jpl.aerie.merlin.protocol.types.ValueSchema schema()Returns the value of theschemarecord component.- Returns:
- the value of the
schemarecord component
-
segments
Returns the value of thesegmentsrecord component.- Returns:
- the value of the
segmentsrecord component
-