Record Class ExpressionExperimentIdAndShortName
java.lang.Object
java.lang.Record
ubic.gemma.model.expression.experiment.ExpressionExperimentIdAndShortName
- All Implemented Interfaces:
Identifiable
public record ExpressionExperimentIdAndShortName(Long id, String shortName)
extends Record
implements Identifiable
A minimalistic projection of an
ExpressionExperiment.
Implemented as a Java record (formerly a Lombok @Value class). getId() is
provided explicitly to satisfy the Identifiable contract, alongside the record's
canonical id() accessor. getShortName() is provided as a get-prefixed
alias to preserve the JavaBean accessor convention used by existing callers.
- Author:
- poirigui
-
Constructor Summary
ConstructorsConstructorDescriptionExpressionExperimentIdAndShortName(Long id, String shortName) Creates an instance of aExpressionExperimentIdAndShortNamerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.getId()Obtain the identifier of the object.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.Returns the value of theshortNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ExpressionExperimentIdAndShortName
-
-
Method Details
-
getId
Description copied from interface:IdentifiableObtain the identifier of the object.- Specified by:
getIdin interfaceIdentifiable
-
getShortName
-
toString
-
hashCode
-
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). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
shortName
Returns the value of theshortNamerecord component.- Returns:
- the value of the
shortNamerecord component
-