public interface NumberExpression extends ObservableNumberValue
NumberExpressionは、ObservableNumberValueと優れたスタイルでバインディングを生成する便利な追加のメソッドです。
このAPIを使用すると、算術演算を定義するときに型を組み合せることができます。 結果の型は、Java言語と同じルールで定義されます。
指定されていない戻りタイプを処理可能にするため、2つのインタフェースNumberExpressionおよび同等のNumberBindingが導入されました。 つまり、戻りタイプがNumberBindingとして指定されると、メソッドは、オペランドの型に応じて、DoubleBinding、FloatBinding、LongBindingまたはIntegerBindingを返します。
APIは、正しい戻りタイプを決定する最適な選択を試行します。たとえば、ObservableNumberValueとプリミティブなdoubleを組み合せると、常にDoubleBindingになります。 戻りタイプがAPIで認識されない場合、正しいgetter(ObservableNumberValue.intValue()など)の呼出しは、開発者の責任です。 内部表現がgetterの型と一致しない場合、標準キャストが実行されます。
| 修飾子と型 | メソッドと説明 |
|---|---|
NumberBinding |
add(double other)
この
NumberExpressionと定数値の合計を計算する新しいNumberBindingを作成します。 |
NumberBinding |
add(float other)
この
NumberExpressionと定数値の合計を計算する新しいNumberBindingを作成します。 |
NumberBinding |
add(int other)
この
NumberExpressionと定数値の合計を計算する新しいNumberBindingを作成します。 |
NumberBinding |
add(long other)
この
NumberExpressionと定数値の合計を計算する新しいNumberBindingを作成します。 |
NumberBinding |
add(ObservableNumberValue other)
この
NumberExpressionと別のObservableNumberValueの合計を計算する新しいNumberBindingを作成します。 |
StringBinding |
asString()
Stringに変換されたNumberExpressionの値を保持するStringBindingを作成します。 |
StringBinding |
asString(Locale locale, String format)
Stringに変換されたNumberExpressionの値を保持するStringBindingを作成します。 |
StringBinding |
asString(String format)
Stringに変換されたNumberExpressionの値を保持するStringBindingを作成します。 |
NumberBinding |
divide(double other)
この
NumberExpressionと定数値の除算を計算する新しいNumberBindingを作成します。 |
NumberBinding |
divide(float other)
この
NumberExpressionと定数値の除算を計算する新しいNumberBindingを作成します。 |
NumberBinding |
divide(int other)
この
NumberExpressionと定数値の除算を計算する新しいNumberBindingを作成します。 |
NumberBinding |
divide(long other)
この
NumberExpressionと定数値の除算を計算する新しいNumberBindingを作成します。 |
NumberBinding |
divide(ObservableNumberValue other)
この
NumberExpressionと別のObservableNumberValueの除算を計算する新しいNumberBindingを作成します。 |
BooleanBinding |
greaterThan(double other)
この
NumberExpressionが定数値より大きい場合にtrueを保持する新しいBooleanBindingを作成します。 |
BooleanBinding |
greaterThan(float other)
この
NumberExpressionが定数値より大きい場合にtrueを保持する新しいBooleanBindingを作成します。 |
BooleanBinding |
greaterThan(int other)
この
NumberExpressionが定数値より大きい場合にtrueを保持する新しいBooleanBindingを作成します。 |
BooleanBinding |
greaterThan(long other)
この
NumberExpressionが定数値より大きい場合にtrueを保持する新しいBooleanBindingを作成します。 |
BooleanBinding |
greaterThan(ObservableNumberValue other)
この
NumberExpressionが別のObservableNumberValueより大きい場合にtrueを保持する新しいBooleanBindingを作成します。 |
BooleanBinding |
greaterThanOrEqualTo(double other)
この
NumberExpressionが定数値以上である場合にtrueを保持する新しいBooleanBindingを作成します。 |
BooleanBinding |
greaterThanOrEqualTo(float other)
この
NumberExpressionが定数値以上である場合にtrueを保持する新しいBooleanBindingを作成します。 |
BooleanBinding |
greaterThanOrEqualTo(int other)
この
NumberExpressionが定数値以上である場合にtrueを保持する新しいBooleanBindingを作成します。 |
BooleanBinding |
greaterThanOrEqualTo(long other)
この
NumberExpressionが定数値以上である場合にtrueを保持する新しいBooleanBindingを作成します。 |
BooleanBinding |
greaterThanOrEqualTo(ObservableNumberValue other)
この
NumberExpressionが別のObservableNumberValue以上である場合にtrueを保持する新しいBooleanBindingを作成します。 |
BooleanBinding |
isEqualTo(double other, double epsilon)
この
NumberExpressionが定数値と同等である場合(許容範囲を含む)にtrueを保持する新しいBooleanBindingを作成します。 |
BooleanBinding |
isEqualTo(float other, double epsilon)
この
NumberExpressionが定数値と同等である場合(許容範囲を含む)にtrueを保持する新しいBooleanBindingを作成します。 |
BooleanBinding |
isEqualTo(int other)
この
NumberExpressionが定数値と同等である場合にtrueを保持する新しいBooleanBindingを作成します。 |
BooleanBinding |
isEqualTo(int other, double epsilon)
この
NumberExpressionが定数値と同等である場合(許容範囲を含む)にtrueを保持する新しいBooleanBindingを作成します。 |
BooleanBinding |
isEqualTo(long other)
この
NumberExpressionが定数値と同等である場合にtrueを保持する新しいBooleanBindingを作成します。 |
BooleanBinding |
isEqualTo(long other, double epsilon)
この
NumberExpressionが定数値と同等である場合(許容範囲を含む)にtrueを保持する新しいBooleanBindingを作成します。 |
BooleanBinding |
isEqualTo(ObservableNumberValue other)
これと別の
ObservableNumberValueが同等である場合にtrueを保持する新しいBooleanBindingを作成します。 |
BooleanBinding |
isEqualTo(ObservableNumberValue other, double epsilon)
これと別の
ObservableNumberValueが同等である場合(許容範囲を含む)にtrueを保持する新しいBooleanBindingを作成します。 |
BooleanBinding |
isNotEqualTo(double other, double epsilon)
この
NumberExpressionが定数値と同等でない場合(許容範囲を含む)にtrueを保持する新しいBooleanBindingを作成します。 |
BooleanBinding |
isNotEqualTo(float other, double epsilon)
この
NumberExpressionが定数値と同等でない場合(許容範囲を含む)にtrueを保持する新しいBooleanBindingを作成します。 |
BooleanBinding |
isNotEqualTo(int other)
この
NumberExpressionが定数値と同等でない場合にtrueを保持する新しいBooleanBindingを作成します。 |
BooleanBinding |
isNotEqualTo(int other, double epsilon)
この
NumberExpressionが定数値と同等でない場合(許容範囲を含む)にtrueを保持する新しいBooleanBindingを作成します。 |
BooleanBinding |
isNotEqualTo(long other)
この
NumberExpressionが定数値と同等でない場合にtrueを保持する新しいBooleanBindingを作成します。 |
BooleanBinding |
isNotEqualTo(long other, double epsilon)
この
NumberExpressionが定数値と同等でない場合(許容範囲を含む)にtrueを保持する新しいBooleanBindingを作成します。 |
BooleanBinding |
isNotEqualTo(ObservableNumberValue other)
これと別の
ObservableNumberValueが同等でない場合にtrueを保持する新しいBooleanBindingを作成します。 |
BooleanBinding |
isNotEqualTo(ObservableNumberValue other, double epsilon)
これと別の
ObservableNumberValueが同等でない場合(許容範囲を含む)にtrueを保持する新しいBooleanBindingを作成します。 |
BooleanBinding |
lessThan(double other)
この
NumberExpressionが定数値未満である場合にtrueを保持する新しいBooleanBindingを作成します。 |
BooleanBinding |
lessThan(float other)
この
NumberExpressionが定数値未満である場合にtrueを保持する新しいBooleanBindingを作成します。 |
BooleanBinding |
lessThan(int other)
この
NumberExpressionが定数値未満である場合にtrueを保持する新しいBooleanBindingを作成します。 |
BooleanBinding |
lessThan(long other)
この
NumberExpressionが定数値未満である場合にtrueを保持する新しいBooleanBindingを作成します。 |
BooleanBinding |
lessThan(ObservableNumberValue other)
この
NumberExpressionが別のObservableNumberValue未満である場合にtrueを保持する新しいBooleanBindingを作成します。 |
BooleanBinding |
lessThanOrEqualTo(double other)
この
NumberExpressionが定数値以下である場合にtrueを保持する新しいBooleanBindingを作成します。 |
BooleanBinding |
lessThanOrEqualTo(float other)
この
NumberExpressionが定数値以下である場合にtrueを保持する新しいBooleanBindingを作成します。 |
BooleanBinding |
lessThanOrEqualTo(int other)
この
NumberExpressionが定数値以下である場合にtrueを保持する新しいBooleanBindingを作成します。 |
BooleanBinding |
lessThanOrEqualTo(long other)
この
NumberExpressionが定数値以下である場合にtrueを保持する新しいBooleanBindingを作成します。 |
BooleanBinding |
lessThanOrEqualTo(ObservableNumberValue other)
この
NumberExpressionが別のObservableNumberValue以下である場合にtrueを保持する新しいBooleanBindingを作成します。 |
NumberBinding |
multiply(double other)
この
NumberExpressionと定数値の積を計算する新しいNumberBindingを作成します。 |
NumberBinding |
multiply(float other)
この
NumberExpressionと定数値の積を計算する新しいNumberBindingを作成します。 |
NumberBinding |
multiply(int other)
この
NumberExpressionと定数値の積を計算する新しいNumberBindingを作成します。 |
NumberBinding |
multiply(long other)
この
NumberExpressionと定数値の積を計算する新しいNumberBindingを作成します。 |
NumberBinding |
multiply(ObservableNumberValue other)
この
NumberExpressionと別のObservableNumberValueの積を計算する新しいNumberBindingを作成します。 |
NumberBinding |
negate()
NumberExpressionの否定を計算する新しいNumberBindingを作成します。 |
NumberBinding |
subtract(double other)
この
NumberExpressionと定数値の差を計算する新しいNumberBindingを作成します。 |
NumberBinding |
subtract(float other)
この
NumberExpressionと定数値の差を計算する新しいNumberBindingを作成します。 |
NumberBinding |
subtract(int other)
この
NumberExpressionと定数値の差を計算する新しいNumberBindingを作成します。 |
NumberBinding |
subtract(long other)
この
NumberExpressionと定数値の差を計算する新しいNumberBindingを作成します。 |
NumberBinding |
subtract(ObservableNumberValue other)
この
NumberExpressionと別のObservableNumberValueの差を計算する新しいNumberBindingを作成します。 |
doubleValue, floatValue, intValue, longValueaddListener, getValue, removeListeneraddListener, removeListenerNumberBinding negate()
NumberExpressionの否定を計算する新しいNumberBindingを作成します。NumberBindingNumberBinding add(ObservableNumberValue other)
NumberExpressionと別のObservableNumberValueの合計を計算する新しいNumberBindingを作成します。other - 2つ目のObservableNumberValueNumberBindingNullPointerException - 他方のObservableNumberValueがnullである場合NumberBinding add(double other)
NumberExpressionと定数値の合計を計算する新しいNumberBindingを作成します。other - 定数値NumberBindingNumberBinding add(float other)
NumberExpressionと定数値の合計を計算する新しいNumberBindingを作成します。other - 定数値NumberBindingNumberBinding add(long other)
NumberExpressionと定数値の合計を計算する新しいNumberBindingを作成します。other - 定数値NumberBindingNumberBinding add(int other)
NumberExpressionと定数値の合計を計算する新しいNumberBindingを作成します。other - 定数値NumberBindingNumberBinding subtract(ObservableNumberValue other)
NumberExpressionと別のObservableNumberValueの差を計算する新しいNumberBindingを作成します。other - 2つ目のObservableNumberValueNumberBindingNullPointerException - 他方のObservableNumberValueがnullである場合NumberBinding subtract(double other)
NumberExpressionと定数値の差を計算する新しいNumberBindingを作成します。other - 定数値NumberBindingNumberBinding subtract(float other)
NumberExpressionと定数値の差を計算する新しいNumberBindingを作成します。other - 定数値NumberBindingNumberBinding subtract(long other)
NumberExpressionと定数値の差を計算する新しいNumberBindingを作成します。other - 定数値NumberBindingNumberBinding subtract(int other)
NumberExpressionと定数値の差を計算する新しいNumberBindingを作成します。other - 定数値NumberBindingNumberBinding multiply(ObservableNumberValue other)
NumberExpressionと別のObservableNumberValueの積を計算する新しいNumberBindingを作成します。other - 2つ目のObservableNumberValueNumberBindingNullPointerException - 他方のObservableNumberValueがnullである場合NumberBinding multiply(double other)
NumberExpressionと定数値の積を計算する新しいNumberBindingを作成します。other - 定数値NumberBindingNumberBinding multiply(float other)
NumberExpressionと定数値の積を計算する新しいNumberBindingを作成します。other - 定数値NumberBindingNumberBinding multiply(long other)
NumberExpressionと定数値の積を計算する新しいNumberBindingを作成します。other - 定数値NumberBindingNumberBinding multiply(int other)
NumberExpressionと定数値の積を計算する新しいNumberBindingを作成します。other - 定数値NumberBindingNumberBinding divide(ObservableNumberValue other)
NumberExpressionと別のObservableNumberValueの除算を計算する新しいNumberBindingを作成します。other - 2つ目のObservableNumberValueNumberBindingNullPointerException - 他方のObservableNumberValueがnullである場合NumberBinding divide(double other)
NumberExpressionと定数値の除算を計算する新しいNumberBindingを作成します。other - 定数値NumberBindingNumberBinding divide(float other)
NumberExpressionと定数値の除算を計算する新しいNumberBindingを作成します。other - 定数値NumberBindingNumberBinding divide(long other)
NumberExpressionと定数値の除算を計算する新しいNumberBindingを作成します。other - 定数値NumberBindingNumberBinding divide(int other)
NumberExpressionと定数値の除算を計算する新しいNumberBindingを作成します。other - 定数値NumberBindingBooleanBinding isEqualTo(ObservableNumberValue other)
ObservableNumberValueが同等である場合にtrueを保持する新しいBooleanBindingを作成します。
浮動小数点数を比較する場合、少しの許容範囲を許可するisEqualTo()メソッドを使用することをお薦めします。
other - 2つ目のObservableNumberValueBooleanBindingNullPointerException - 他方のObservableNumberValueがnullである場合BooleanBinding isEqualTo(ObservableNumberValue other, double epsilon)
ObservableNumberValueが同等である場合(許容範囲を含む)にtrueを保持する新しいBooleanBindingを作成します。
Math.abs(a-b) <= epsilonの場合、2つのオペランドaおよびbが同等とみなされます。
丸め誤差のために浮動小数点数を比較する場合に少しの許容範囲を許可することをお薦めします。
other - 2つ目のObservableNumberValueepsilon - 許容範囲BooleanBindingNullPointerException - 他方のObservableNumberValueがnullである場合BooleanBinding isEqualTo(double other, double epsilon)
NumberExpressionが定数値と同等である場合(許容範囲を含む)にtrueを保持する新しいBooleanBindingを作成します。
Math.abs(a-b) <= epsilonの場合、2つのオペランドaおよびbが同等とみなされます。
丸め誤差のために浮動小数点数を比較する場合に少しの許容範囲を許可することをお薦めします。
other - 定数値epsilon - 許可された許容範囲BooleanBindingBooleanBinding isEqualTo(float other, double epsilon)
NumberExpressionが定数値と同等である場合(許容範囲を含む)にtrueを保持する新しいBooleanBindingを作成します。
Math.abs(a-b) <= epsilonの場合、2つのオペランドaおよびbが同等とみなされます。
丸め誤差のために浮動小数点数を比較する場合に少しの許容範囲を許可することをお薦めします。
other - 定数値epsilon - 許可された許容範囲BooleanBindingBooleanBinding isEqualTo(long other)
NumberExpressionが定数値と同等である場合にtrueを保持する新しいBooleanBindingを作成します。
浮動小数点数を比較する場合、少しの許容範囲を許可するisEqualTo()メソッドを使用することをお薦めします。
other - 定数値BooleanBindingBooleanBinding isEqualTo(long other, double epsilon)
NumberExpressionが定数値と同等である場合(許容範囲を含む)にtrueを保持する新しいBooleanBindingを作成します。
Math.abs(a-b) <= epsilonの場合、2つのオペランドaおよびbが同等とみなされます。
丸め誤差のために浮動小数点数を比較する場合に少しの許容範囲を許可することをお薦めします。
other - 定数値epsilon - 許可された許容範囲BooleanBindingBooleanBinding isEqualTo(int other)
NumberExpressionが定数値と同等である場合にtrueを保持する新しいBooleanBindingを作成します。
浮動小数点数を比較する場合、少しの許容範囲を許可するisEqualTo()メソッドを使用することをお薦めします。
other - 定数値BooleanBindingBooleanBinding isEqualTo(int other, double epsilon)
NumberExpressionが定数値と同等である場合(許容範囲を含む)にtrueを保持する新しいBooleanBindingを作成します。
Math.abs(a-b) <= epsilonの場合、2つのオペランドaおよびbが同等とみなされます。
浮動小数点数を比較する場合、少しの許容範囲を許可することをお薦めします。
other - 定数値epsilon - 許可された許容範囲BooleanBindingBooleanBinding isNotEqualTo(ObservableNumberValue other)
ObservableNumberValueが同等でない場合にtrueを保持する新しいBooleanBindingを作成します。
浮動小数点数を比較する場合、少しの許容範囲を許可するisNotEqualTo()メソッドを使用することをお薦めします。
other - 2つ目のObservableNumberValueBooleanBindingNullPointerException - 他方のObservableNumberValueがnullである場合BooleanBinding isNotEqualTo(ObservableNumberValue other, double epsilon)
ObservableNumberValueが同等でない場合(許容範囲を含む)にtrueを保持する新しいBooleanBindingを作成します。
2つのオペランドaおよびbは、Math.abs(a-b) > epsilonである場合に同等でないとみなされます。
丸め誤差のために浮動小数点数を比較する場合に少しの許容範囲を許可することをお薦めします。
other - 2つ目のObservableNumberValueepsilon - 許可された許容範囲BooleanBindingNullPointerException - 他方のObservableNumberValueがnullである場合BooleanBinding isNotEqualTo(double other, double epsilon)
NumberExpressionが定数値と同等でない場合(許容範囲を含む)にtrueを保持する新しいBooleanBindingを作成します。
2つのオペランドaおよびbは、Math.abs(a-b) > epsilonである場合に同等でないとみなされます。
浮動小数点数を比較する場合、少しの許容範囲を許可することをお薦めします。
other - 定数値epsilon - 許可された許容範囲BooleanBindingBooleanBinding isNotEqualTo(float other, double epsilon)
NumberExpressionが定数値と同等でない場合(許容範囲を含む)にtrueを保持する新しいBooleanBindingを作成します。
2つのオペランドaおよびbは、Math.abs(a-b) > epsilonである場合に同等でないとみなされます。
浮動小数点数を比較する場合、少しの許容範囲を許可することをお薦めします。
other - 定数値epsilon - 許可された許容範囲BooleanBindingBooleanBinding isNotEqualTo(long other)
NumberExpressionが定数値と同等でない場合にtrueを保持する新しいBooleanBindingを作成します。
浮動小数点数を比較する場合、少しの許容範囲を許可するisNotEqualTo()メソッドを使用することをお薦めします。
other - 定数値BooleanBindingBooleanBinding isNotEqualTo(long other, double epsilon)
NumberExpressionが定数値と同等でない場合(許容範囲を含む)にtrueを保持する新しいBooleanBindingを作成します。
2つのオペランドaおよびbは、Math.abs(a-b) > epsilonである場合に同等でないとみなされます。
浮動小数点数を比較する場合、少しの許容範囲を許可することをお薦めします。
other - 定数値epsilon - 許可された許容範囲BooleanBindingBooleanBinding isNotEqualTo(int other)
NumberExpressionが定数値と同等でない場合にtrueを保持する新しいBooleanBindingを作成します。
浮動小数点数を比較する場合、少しの許容範囲を許可するisNotEqualTo()メソッドを使用することをお薦めします。
other - 定数値BooleanBindingBooleanBinding isNotEqualTo(int other, double epsilon)
NumberExpressionが定数値と同等でない場合(許容範囲を含む)にtrueを保持する新しいBooleanBindingを作成します。
2つのオペランドaおよびbは、Math.abs(a-b) > epsilonである場合に同等でないとみなされます。
浮動小数点数を比較する場合、少しの許容範囲を許可することをお薦めします。
other - 定数値epsilon - 許可された許容範囲BooleanBindingBooleanBinding greaterThan(ObservableNumberValue other)
NumberExpressionが別のObservableNumberValueより大きい場合にtrueを保持する新しいBooleanBindingを作成します。other - 2つ目のObservableNumberValueBooleanBindingNullPointerException - 他方のObservableNumberValueがnullである場合BooleanBinding greaterThan(double other)
NumberExpressionが定数値より大きい場合にtrueを保持する新しいBooleanBindingを作成します。other - 定数値BooleanBindingBooleanBinding greaterThan(float other)
NumberExpressionが定数値より大きい場合にtrueを保持する新しいBooleanBindingを作成します。other - 定数値BooleanBindingBooleanBinding greaterThan(long other)
NumberExpressionが定数値より大きい場合にtrueを保持する新しいBooleanBindingを作成します。other - 定数値BooleanBindingBooleanBinding greaterThan(int other)
NumberExpressionが定数値より大きい場合にtrueを保持する新しいBooleanBindingを作成します。other - 定数値BooleanBindingBooleanBinding lessThan(ObservableNumberValue other)
NumberExpressionが別のObservableNumberValue未満である場合にtrueを保持する新しいBooleanBindingを作成します。other - 2つ目のObservableNumberValueBooleanBindingNullPointerException - 他方のObservableNumberValueがnullである場合BooleanBinding lessThan(double other)
NumberExpressionが定数値未満である場合にtrueを保持する新しいBooleanBindingを作成します。other - 定数値BooleanBindingBooleanBinding lessThan(float other)
NumberExpressionが定数値未満である場合にtrueを保持する新しいBooleanBindingを作成します。other - 定数値BooleanBindingBooleanBinding lessThan(long other)
NumberExpressionが定数値未満である場合にtrueを保持する新しいBooleanBindingを作成します。other - 定数値BooleanBindingBooleanBinding lessThan(int other)
NumberExpressionが定数値未満である場合にtrueを保持する新しいBooleanBindingを作成します。other - 定数値BooleanBindingBooleanBinding greaterThanOrEqualTo(ObservableNumberValue other)
NumberExpressionが別のObservableNumberValue以上である場合にtrueを保持する新しいBooleanBindingを作成します。other - 2つ目のObservableNumberValueBooleanBindingNullPointerException - 他方のObservableNumberValueがnullである場合BooleanBinding greaterThanOrEqualTo(double other)
NumberExpressionが定数値以上である場合にtrueを保持する新しいBooleanBindingを作成します。other - 定数値BooleanBindingBooleanBinding greaterThanOrEqualTo(float other)
NumberExpressionが定数値以上である場合にtrueを保持する新しいBooleanBindingを作成します。other - 定数値BooleanBindingBooleanBinding greaterThanOrEqualTo(long other)
NumberExpressionが定数値以上である場合にtrueを保持する新しいBooleanBindingを作成します。other - 定数値BooleanBindingBooleanBinding greaterThanOrEqualTo(int other)
NumberExpressionが定数値以上である場合にtrueを保持する新しいBooleanBindingを作成します。other - 定数値BooleanBindingBooleanBinding lessThanOrEqualTo(ObservableNumberValue other)
NumberExpressionが別のObservableNumberValue以下である場合にtrueを保持する新しいBooleanBindingを作成します。other - 2つ目のObservableNumberValueBooleanBindingNullPointerException - 他方のObservableNumberValueがnullである場合BooleanBinding lessThanOrEqualTo(double other)
NumberExpressionが定数値以下である場合にtrueを保持する新しいBooleanBindingを作成します。other - 定数値BooleanBindingBooleanBinding lessThanOrEqualTo(float other)
NumberExpressionが定数値以下である場合にtrueを保持する新しいBooleanBindingを作成します。other - 定数値BooleanBindingBooleanBinding lessThanOrEqualTo(long other)
NumberExpressionが定数値以下である場合にtrueを保持する新しいBooleanBindingを作成します。other - 定数値BooleanBindingBooleanBinding lessThanOrEqualTo(int other)
NumberExpressionが定数値以下である場合にtrueを保持する新しいBooleanBindingを作成します。other - 定数値BooleanBindingStringBinding asString()
Stringに変換されたNumberExpressionの値を保持するStringBindingを作成します。 このNumberExpressionの値が変更される場合、StringBindingの値が自動的に更新されます。
書式設定を適用せずに変換が実行されます。
StringBindingStringBinding asString(String format)
Stringに変換されたNumberExpressionの値を保持するStringBindingを作成します。 このNumberExpressionの値が変更される場合、StringBindingの値が自動的に更新されます。
書式設定しているStringに従って、結果が書式設定されます。 ルールの書式設定は、java.util.Formatterを参照してください。
format - 書式設定しているStringStringBindingStringBinding asString(Locale locale, String format)
Stringに変換されたNumberExpressionの値を保持するStringBindingを作成します。 このNumberExpressionの値が変更される場合、StringBindingの値が自動的に更新されます。
書式設定しているStringに従って結果が書式設定され、Localeに渡されます。 ルールの書式設定は、java.util.Formatterを参照してください。 Localeの詳細は、java.util.Localeを参照してください。
format - 書式設定しているStringStringBindingCopyright (c) 2008, 2015, Oracle and/or its affiliates. All rights reserved.