public final class Distance extends ObjectSE implements SerializableSE, ComparableSE<Distance>
| コンストラクターと説明 |
|---|
Distance(double value) ニュートラルメトリクスで新しい Distance を作成します。 |
Distance(double value, Metric metric) |
| 修飾子と型 | メソッドと説明 |
|---|---|
Distance | add(Distance other) 指定された距離を現在の距離に追加します。 |
Distance | add(Distance other, Metric metric) |
static Range<Distance> | between(Distance min, Distance max) |
static Range<Distance> | between(double minValue, Metric minMetric, double maxValue, Metric maxMetric) |
int | compareTo(Distance that) |
boolean | equals(ObjectSE o) |
Metric | getMetric() |
double | getNormalizedValue() 基になる Metric に関する正規化された値を返します。 |
StringSE | getUnit() 距離が含まれる単位の StringSE 表現を返します。 |
double | getValue() 現在の Metric の距離値。 |
int | hashCode() |
Distance | in(Metric metric) |
StringSE | toString() |
cloneSE, finalizeSE, getClassSE, notifySE, notifyAllSE, waitSE, waitSE, waitSEpublic Distance(double value)
Distance を作成します。これは、提供された値が正規化された形式である必要があることを意味します。value -public Distance(double value,
Metric metric)value -metric - null であってはなりません。public static Range<Distance> between(Distance min, Distance max)
min - null でもかまいません。max - null でもかまいません。public static Range<Distance> between(double minValue, Metric minMetric, double maxValue, Metric maxMetric)
minValue -minMetric - null でもかまいません。maxValue -maxMetric - null でもかまいません。public double getNormalizedValue()
Metric に関する正規化された値を返します。public StringSE getUnit()
StringSE 表現を返します。Metric.getAbbreviation()public Distance add(Distance other)
Distance は、現在のものと同じメトリクスになります。other - null であってはなりません。public Distance add(Distance other, Metric metric)
other - null であってはなりません。metric - null であってはなりません。public int compareTo(@Nullable Distance that)
ComparableSE<Distance> 内の compareToSE public StringSE toString()
ObjectSE の toStringSE public double getValue()
Metric の距離値。public Metric getMetric()
public int hashCode()
ObjectSE の hashCodeSE Copyright © 2011–2020 Pivotal Software, Inc.. All rights reserved.