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() |
public static ShrinkingDistance of(long... distances)
public static <T> ShrinkingDistance forCollection(java.util.Collection<Shrinkable<T>> elements)
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>
public java.util.List<ShrinkingDistance> dimensions()
public int size()
public ShrinkingDistance plus(ShrinkingDistance other)
public ShrinkingDistance append(ShrinkingDistance other)