T
- ソース型 public final class Bindable<T> extends ObjectSE
Binder
によってバインドできるソース。of(Class)
, of(ResolvableType)
修飾子と型 | クラスと説明 |
---|---|
static class | Bindable.BindRestriction 値をバインドするときに適用できる制限。 |
修飾子と型 | メソッドと説明 |
---|---|
boolean | equals(ObjectSE obj) |
<A extends AnnotationSE> | getAnnotation(ClassSE<A> type) バインディングに影響を与える可能性がある単一の関連付けられたアノテーションを返します。 |
AnnotationSE[] | getAnnotations() バインディングに影響を与える可能性のある関連するアノテーションを返します。 |
ResolvableType | getBoxedType() バインドするアイテムのボックス化された型を返します。 |
ResolvableType | getType() バインドするアイテムの型を返します。 |
SupplierSE<T> | getValue() オブジェクト値または null を提供するサプライヤーを返します。 |
boolean | hasBindRestriction(Bindable.BindRestriction bindRestriction) 指定されたバインド制限が追加されている場合、 true を返します。 |
int | hashCode() |
static <E> Bindable<ListSE<E>> | listOf(ClassSE<E> elementType) |
static <K,V> Bindable<MapSE<K,V>> | mapOf(ClassSE<K> keyType, ClassSE<V> valueType) |
static <T> Bindable<T> | of(ClassSE<T> type) 指定された型の新しい Bindable を作成します。 |
static <T> Bindable<T> | of(ResolvableType type) 指定された型の新しい Bindable を作成します。 |
static <T> Bindable<T> | ofInstance(T instance) インスタンスに等しい既存の値を使用して、指定されたインスタンスの型の新しい Bindable を作成します。 |
static <E> Bindable<SetSE<E>> | setOf(ClassSE<E> elementType) |
StringSE | toString() |
Bindable<T> | withAnnotations(AnnotationSE... annotations) 指定されたアノテーションを使用して、更新された Bindable インスタンスを作成します。 |
Bindable<T> | withBindRestrictions(Bindable.BindRestriction... additionalRestrictions) 追加のバインド制限を使用して、更新された Bindable インスタンスを作成します。 |
Bindable<T> | withExistingValue(T existingValue) 既存の値で更新された Bindable インスタンスを作成します。 |
Bindable<T> | withSuppliedValue(SupplierSE<T> suppliedValue) 値サプライヤーで更新された Bindable インスタンスを作成します。 |
cloneSE, finalizeSE, getClassSE, notifySE, notifyAllSE, waitSE, waitSE, waitSE
public ResolvableType getType()
public ResolvableType getBoxedType()
public SupplierSE<T> getValue()
null
を提供するサプライヤーを返します。null
public AnnotationSE[] getAnnotations()
public <A extends AnnotationSE> A getAnnotation(ClassSE<A> type)
A
- アノテーション型 type
- アノテーション型 null
public boolean hasBindRestriction(Bindable.BindRestriction bindRestriction)
true
を返します。bindRestriction
- チェックするバインド制限 public int hashCode()
ObjectSE
の hashCodeSE
public StringSE toString()
ObjectSE
の toStringSE
public Bindable<T> withAnnotations(AnnotationSE... annotations)
Bindable
インスタンスを作成します。annotations
- アノテーション Bindable
public Bindable<T> withExistingValue(T existingValue)
Bindable
インスタンスを作成します。existingValue
- 既存の値 Bindable
public Bindable<T> withSuppliedValue(SupplierSE<T> suppliedValue)
Bindable
インスタンスを作成します。suppliedValue
- 値のサプライヤー Bindable
public Bindable<T> withBindRestrictions(Bindable.BindRestriction... additionalRestrictions)
Bindable
インスタンスを作成します。additionalRestrictions
- 適用する追加の制限 Bindable
public static <T> Bindable<T> ofInstance(T instance)
Bindable
を作成します。T
- ソース型 instance
- インスタンス (null
であってはなりません)Bindable
インスタンス of(ResolvableType)
, withExistingValue(Object)
public static <T> Bindable<T> of(ClassSE<T> type)
Bindable
を作成します。T
- ソース型 type
- 型 (null
であってはなりません)Bindable
インスタンス of(ResolvableType)
public static <E> Bindable<ListSE<E>> listOf(ClassSE<E> elementType)
E
- 要素型 elementType
- リスト要素型 Bindable
インスタンス public static <E> Bindable<SetSE<E>> setOf(ClassSE<E> elementType)
E
- 要素型 elementType
- セット要素型 Bindable
インスタンス public static <K,V> Bindable<MapSE<K,V>> mapOf(ClassSE<K> keyType, ClassSE<V> valueType)
K
- キー型 V
- 値の型 keyType
- マップキー型 valueType
- マップ値型 Bindable
インスタンス public static <T> Bindable<T> of(ResolvableType type)
Bindable
を作成します。