T
- ソース型 public static final class PropertyMapper.Source<T> extends ObjectSE
修飾子と型 | メソッドと説明 |
---|---|
<R> PropertyMapper.Source<R> | as(FunctionSE<T,R> adapter) 指定されたアダプター関数を介して変更されたソースの適応バージョンを返します。 |
<R extends NumberSE> | asInt(FunctionSE<T,R> adapter) Integer SE 型のソースの適応バージョンを返します。 |
void | to(ConsumerSE<T> consumer) フィルタリングされていない値を指定されたコンシューマーに渡すことにより、マッピングを完了します。 |
void | toCall(RunnableSE runnable) 値がフィルタリングされていないときに指定されたメソッドを呼び出して、マッピングを完了します。 |
<R> R | toInstance(FunctionSE<T,R> factory) フィルタリングされていない値から新しいインスタンスを作成して、マッピングを完了します。 |
PropertyMapper.Source<T> | when(PredicateSE<T> predicate) 指定された述語と一致しない値をマップしないソースのフィルターされたバージョンを返します。 |
PropertyMapper.Source<T> | whenEqualTo(ObjectSE object) 指定された object に等しい値のみをマップするソースのフィルターされたバージョンを返します。 |
PropertyMapper.Source<T> | whenFalse() false である値のみをマップするソースのフィルタリングされたバージョンを返します。 |
PropertyMapper.Source<T> | whenHasText() 実際のテキストを含む toString() を持つ値のみをマップするソースのフィルタリングされたバージョンを返します。 |
<R extends T> | whenInstanceOf(ClassSE<R> target) 指定された型のインスタンスである値のみをマップするソースのフィルタリングされたバージョンを返します。 |
PropertyMapper.Source<T> | whenNonNull() null 以外の値または NullPointerException SE をスローするサプライヤーをマップしないソースのフィルターされたバージョンを返します。 |
PropertyMapper.Source<T> | whenNot(PredicateSE<T> predicate) 指定された述語に一致する値をマップしないソースのフィルターされたバージョンを返します。 |
PropertyMapper.Source<T> | whenTrue() true である値のみをマップするソースのフィルタリングされたバージョンを返します。 |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
public <R extends NumberSE> PropertyMapper.Source<IntegerSE> asInt(FunctionSE<T,R> adapter)
Integer
SE 型のソースの適応バージョンを返します。R
- 結果の型 adapter
- 現在の値を数値に変換するアダプター。public <R> PropertyMapper.Source<R> as(FunctionSE<T,R> adapter)
R
- 結果の型 adapter
- 適用するアダプター public PropertyMapper.Source<T> whenNonNull()
NullPointerException
SE をスローするサプライヤーをマップしないソースのフィルターされたバージョンを返します。public PropertyMapper.Source<T> whenTrue()
true
である値のみをマップするソースのフィルタリングされたバージョンを返します。public PropertyMapper.Source<T> whenFalse()
false
である値のみをマップするソースのフィルタリングされたバージョンを返します。public PropertyMapper.Source<T> whenHasText()
toString()
を持つ値のみをマップするソースのフィルタリングされたバージョンを返します。public PropertyMapper.Source<T> whenEqualTo(ObjectSE object)
object
に等しい値のみをマップするソースのフィルターされたバージョンを返します。object
- 照合するオブジェクト public <R extends T> PropertyMapper.Source<R> whenInstanceOf(ClassSE<R> target)
R
- ターゲット型 target
- 照合するターゲット型 public PropertyMapper.Source<T> whenNot(PredicateSE<T> predicate)
predicate
- 値のフィルタリングに使用される述語 public PropertyMapper.Source<T> when(PredicateSE<T> predicate)
predicate
- 値のフィルタリングに使用される述語 public void to(ConsumerSE<T> consumer)
consumer
- フィルターされていない場合に値を受け入れる必要があるコンシューマー public <R> R toInstance(FunctionSE<T,R> factory)
R
- 結果の型 factory
- インスタンスの作成に使用されたファクトリ NoSuchElementExceptionSE
- 値がフィルタリングされている場合 public void toCall(RunnableSE runnable)
runnable
- 値がフィルタリングされていない場合に呼び出すメソッド Copyright © 2019 Pivotal Software, Inc.. All rights reserved.