Record Class PixelPrecision
java.lang.Object
java.lang.Record
net.amygdalum.allotropy.fluent.precision.PixelPrecision
- All Implemented Interfaces:
Precision
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionPixelPrecision(double units) Creates an instance of aPixelPrecisionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleaneq(double s, double o) final booleanIndicates whether some other object is "equal to" this one.booleange(double s, double o) booleangt(double s, double o) final inthashCode()Returns a hash code value for this object.booleanle(double s, double o) booleanlt(double s, double o) final StringtoString()Returns a string representation of this record class.doubleunits()Returns the value of theunitsrecord component.
-
Constructor Details
-
PixelPrecision
public PixelPrecision(double units) Creates an instance of aPixelPrecisionrecord class.- Parameters:
units- the value for theunitsrecord component
-
-
Method Details
-
lt
public boolean lt(double s, double o) -
le
public boolean le(double s, double o) -
eq
public boolean eq(double s, double o) -
ge
public boolean ge(double s, double o) -
gt
public boolean gt(double s, double o) -
description
- Specified by:
descriptionin interfacePrecision
-
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 with '=='. -
units
public double units()Returns the value of theunitsrecord component.- Returns:
- the value of the
unitsrecord component
-