Record Class ColorContrast.Shortfall
java.lang.Object
java.lang.Record
com.iizix.prop.ColorContrast.Shortfall
- Record Components:
pair- The pair.ratio- The ratio measured.
- Enclosing class:
ColorContrast
public static record ColorContrast.Shortfall(ColorRoles.ContrastPair pair, double ratio) extends Record
A contrast pair below its ratio.
- Author:
- Christopher Mindus
Constructor Summary
ConstructorsConstructorDescriptionShortfall(ColorRoles.ContrastPair pair, double ratio) Creates an instance of aShortfallrecord 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.pair()Returns the value of thepairrecord component.doubleratio()Returns the value of theratiorecord component.final StringtoString()Returns a string representation of this record class.
Constructor Details
Method Details
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes.pair
ratio