@API(status=STABLE, since="1.0") public class ShrinkingDistance extends java.lang.Object implements java.lang.Comparable<ShrinkingDistance>
Modifier and Type | Method and Description |
---|---|
ShrinkingDistance |
append(ShrinkingDistance other) |
static <T> ShrinkingDistance |
combine(java.util.List<Shrinkable<T>> shrinkables) |
int |
compareTo(ShrinkingDistance other) |
java.util.List<ShrinkingDistance> |
dimensions() |
boolean |
equals(java.lang.Object o) |
static <T> ShrinkingDistance |
forCollection(java.util.Collection<Shrinkable<T>> elements) |
int |
hashCode() |
static ShrinkingDistance |
of(long... distances) |
ShrinkingDistance |
plus(ShrinkingDistance other) |
int |
size() |
java.lang.String |
toString() |
@API(status=MAINTAINED, since="1.0") public static ShrinkingDistance of(long... distances)
@API(status=MAINTAINED, since="1.0") public static <T> ShrinkingDistance forCollection(java.util.Collection<Shrinkable<T>> elements)
@API(status=MAINTAINED, since="1.0") public static <T> ShrinkingDistance combine(java.util.List<Shrinkable<T>> shrinkables)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public int compareTo(ShrinkingDistance other)
compareTo
in interface java.lang.Comparable<ShrinkingDistance>
@API(status=INTERNAL) public java.util.List<ShrinkingDistance> dimensions()
@API(status=INTERNAL) public int size()
@API(status=INTERNAL) public ShrinkingDistance plus(ShrinkingDistance other)
@API(status=INTERNAL) public ShrinkingDistance append(ShrinkingDistance other)