public final class Range<T extends ComparableSE<T>> extends ObjectSE
| 修飾子と型 | クラスと説明 |
|---|---|
static class | Range.Bound<T extends ComparableSE<T>> 境界を表す値オブジェクト。 |
static class | Range.RangeBuilder<T extends ComparableSE<T>> 上限を指定できる Range のビルダー。 |
| コンストラクターと説明 |
|---|
Range(T lowerBound, T upperBound) 使用すべきではありません。 of(Bound, Bound) を推奨する 2.0 以降。 |
Range(T lowerBound, T upperBound, boolean lowerInclusive, boolean upperInclusive) 使用すべきではありません。 2.0 以降。 of(Bound, Bound) および Range.Bound ファクトリメソッドを使用します: Range.Bound.inclusive(Comparable)、Range.Bound.exclusive(Comparable)/Range.Bound.unbounded()。 |
| 修飾子と型 | メソッドと説明 |
|---|---|
boolean | contains(T value)Range に指定された値が含まれているかどうかを返します。 |
boolean | equals(ObjectSE o) |
static <T extends ComparableSE<T>> | from(Range.Bound<T> lower) 下側の Range.Bound を指定して Range.RangeBuilder を作成します。 |
@NonNull Range.Bound<T> | getLowerBound() 範囲の下限。 |
@NonNull Range.Bound<T> | getUpperBound() 範囲の上限。 |
int | hashCode() |
boolean | isLowerInclusive() 使用すべきではありません。 2.0 以降、 getLowerBound() および Range.Bound.isInclusive() を使用します。 |
boolean | isUpperInclusive() 使用すべきではありません。 2.0 以降、 getUpperBound() および Range.Bound.isInclusive() を使用します。 |
static <T extends ComparableSE<T>> | of(Range.Bound<T> lowerBound, Range.Bound<T> upperBound) 指定された下限と上限を使用して新しい Range を作成します。 |
StringSE | toString() |
static <T extends ComparableSE<T>> | unbounded() 無制限の Range を返します。 |
cloneSE, finalizeSE, getClassSE, notifySE, notifyAllSE, waitSE, waitSE, waitSE@DeprecatedSE public Range(T lowerBound, T upperBound)
of(Bound, Bound) に置き換えられました。Range を作成します。指定された値を包括的境界として扱います。Range(Comparable, Comparable, boolean, boolean) を使用して、さまざまなバインドされた動作を構成します。lowerBound - upperBound が null でない場合は null になることがあります。upperBound - lowerBound が null でない場合は null になることがあります。of(Bound, Bound)@DeprecatedSE public Range(T lowerBound, T upperBound, boolean lowerInclusive, boolean upperInclusive)
of(Bound, Bound) および Range.Bound ファクトリメソッドを使用します: Range.Bound.inclusive(Comparable)、Range.Bound.exclusive(Comparable)/Range.Bound.unbounded()。Range を作成します。lowerBound - null でもかまいません。upperBound - null でもかまいません。lowerInclusive -upperInclusive -public static <T extends ComparableSE<T>> Range<T> unbounded()
Range を返します。public static <T extends ComparableSE<T>> Range.RangeBuilder<T> from(Range.Bound<T> lower)
Range.Bound を指定して Range.RangeBuilder を作成します。lower - null であってはなりません。public static <T extends ComparableSE<T>> Range<T> of(Range.Bound<T> lowerBound, Range.Bound<T> upperBound)
Range を作成します。lowerBound - null であってはなりません。upperBound - null であってはなりません。@DeprecatedSE public boolean isLowerInclusive()
getLowerBound() および Range.Bound.isInclusive() を使用します。@DeprecatedSE public boolean isUpperInclusive()
getUpperBound() および Range.Bound.isInclusive() を使用します。public boolean contains(T value)
Range に指定された値が含まれているかどうかを返します。value - null であってはなりません。public StringSE toString()
ObjectSE の toStringSE @NonNull public @NonNull Range.Bound<T> getLowerBound()
@NonNull public @NonNull Range.Bound<T> getUpperBound()
public int hashCode()
ObjectSE の hashCodeSE Copyright © 2011–2019 Pivotal Software, Inc.. All rights reserved.