@Test public void isSingleValue() { SubRange empty = new SubRange(2, 1); SubRange base = new SubRange(0, 10); SubRange singleton = SubRange.singleton(5); assertThat(empty.isSingleValue(), equalTo(false)); assertThat(base.isSingleValue(), equalTo(false)); assertThat(singleton.isSingleValue(), equalTo(true)); }
public boolean isSingleValue() { return _start == _end; }
SubRange implements Serializable, Comparable<SubRange> { public boolean isSingleValue() { return _start == _end; } }
SubRange implements Serializable, Comparable<SubRange> { public boolean isSingleValue() { return _start == _end; } SubRange(int start, int end); @JsonCreator  SubRange(@Nullable Object o); }
SubRange implements Serializable, Comparable<SubRange> { public boolean isSingleValue() { return _start == _end; } SubRange(int start, int end); @JsonCreator  SubRange(@Nullable Object o); static SubRange singleton(int value); IntStream asStream(); @Override int compareTo(@Nonnull SubRange rhs); boolean contains(@Nonnull SubRange other); @Override boolean equals(Object o); int getEnd(); int getStart(); @Override int hashCode(); boolean includes(@Nullable Integer integer); boolean includes(int integer); Optional<SubRange> intersection(SubRange other); boolean isEmpty(); boolean isSingleValue(); @JsonValue String serializedForm(); @Override String toString(); }
SubRange implements Serializable, Comparable<SubRange> { public boolean isSingleValue() { return _start == _end; } SubRange(int start, int end); @JsonCreator  SubRange(@Nullable Object o); static SubRange singleton(int value); IntStream asStream(); @Override int compareTo(@Nonnull SubRange rhs); boolean contains(@Nonnull SubRange other); @Override boolean equals(Object o); int getEnd(); int getStart(); @Override int hashCode(); boolean includes(@Nullable Integer integer); boolean includes(int integer); Optional<SubRange> intersection(SubRange other); boolean isEmpty(); boolean isSingleValue(); @JsonValue String serializedForm(); @Override String toString();  }