Record Class StudyPart.ValueDisplayMode
java.lang.Object
java.lang.Record
com.amalgamasimulation.desktop.ui.studies.StudyPart.ValueDisplayMode
- Enclosing class:
StudyPart
public static record StudyPart.ValueDisplayMode(BiFunction<Function<Double,String>,DistributionStatistics,String> formatter, String name, org.eclipse.swt.graphics.Image icon)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionValueDisplayMode(BiFunction<Function<Double, String>, DistributionStatistics, String> formatter, String name, org.eclipse.swt.graphics.Image icon) Creates an instance of aValueDisplayModerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theformatterrecord component.final inthashCode()Returns a hash code value for this object.org.eclipse.swt.graphics.Imageicon()Returns the value of theiconrecord component.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ValueDisplayMode
public ValueDisplayMode(BiFunction<Function<Double, String>, DistributionStatistics, String> formatter, String name, org.eclipse.swt.graphics.Image icon) Creates an instance of aValueDisplayModerecord class.- Parameters:
formatter- the value for theformatterrecord componentname- the value for thenamerecord componenticon- the value for theiconrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
formatter
Returns the value of theformatterrecord component.- Returns:
- the value of the
formatterrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
icon
public org.eclipse.swt.graphics.Image icon()Returns the value of theiconrecord component.- Returns:
- the value of the
iconrecord component
-