Package docking.widgets.table
Record Class SpannedRenderer.DoubleSpan
java.lang.Object
java.lang.Record
docking.widgets.table.SpannedRenderer.DoubleSpan
- All Implemented Interfaces:
Span<Double,,SpannedRenderer.DoubleSpan> Comparable<SpannedRenderer.DoubleSpan>
- Enclosing interface:
SpannedRenderer<N extends Number>
public static record SpannedRenderer.DoubleSpan(Span.Domain<Double,SpannedRenderer.DoubleSpan> domain, Double min, Double max)
extends Record
implements Span<Double,SpannedRenderer.DoubleSpan>
A closed interval on doubles
This can only be a record of the endpoints. It does not have a domain implementation.
-
Nested Class Summary
Nested classes/interfaces inherited from interface generic.Span
Span.DefaultSpanMap<N,S extends Span<N, S>, V>, Span.DefaultSpanSet<N, S extends Span<N, S>>, Span.Domain<N, S extends Span<N, S>>, Span.Empty<N, S extends Span<N, S>>, Span.MutableSpanMap<N, S extends Span<N, S>, V>, Span.MutableSpanSet<N, S extends Span<N, S>>, Span.SpanMap<N, S extends Span<N, S>, V>, Span.SpanMapSetter<E, N, S extends Span<N, S>, V>, Span.SpanSet<N, S extends Span<N, S>> -
Constructor Summary
ConstructorsConstructorDescriptionDoubleSpan(double min, double max) DoubleSpan(Span.Domain<Double, SpannedRenderer.DoubleSpan> domain, Double min, Double max) Creates an instance of aDoubleSpanrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondomain()Returns the value of thedomainrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.max()Returns the value of themaxrecord component.min()Returns the value of theminrecord component.toString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface generic.Span
bound, compareTo, contains, encloses, intersect, intersects, isEmpty, maxIsFinite, minIsFinite, subtract, toString
-
Constructor Details
-
DoubleSpan
public DoubleSpan(double min, double max) -
DoubleSpan
Creates an instance of aDoubleSpanrecord class.- Parameters:
domain- the value for thedomainrecord componentmin- the value for theminrecord componentmax- the value for themaxrecord 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). -
domain
Returns the value of thedomainrecord component.- Specified by:
domainin interfaceSpan<Double,SpannedRenderer.DoubleSpan> - Returns:
- the value of the
domainrecord component
-
min
Returns the value of theminrecord component.- Specified by:
minin interfaceSpan<Double,SpannedRenderer.DoubleSpan> - Returns:
- the value of the
minrecord component - See Also:
-
max
Returns the value of themaxrecord component.- Specified by:
maxin interfaceSpan<Double,SpannedRenderer.DoubleSpan> - Returns:
- the value of the
maxrecord component - See Also:
-