public final class EmptyTargetSource extends ObjectSE implements TargetSource, SerializableSE
TargetSource
。動作は、インターフェースとアドバイザのみによって提供されます。修飾子と型 | フィールドと説明 |
---|---|
static EmptyTargetSource | INSTANCE この EmptyTargetSource の正規(シングルトン)インスタンス。 |
修飾子と型 | メソッドと説明 |
---|---|
boolean | equals(ObjectSE other) |
static EmptyTargetSource | forClass(ClassSE<?> targetClass) 指定されたターゲットクラスの EmptyTargetSource を返します。 |
static EmptyTargetSource | forClass(ClassSE<?> targetClass, boolean isStatic) 指定されたターゲットクラスの EmptyTargetSource を返します。 |
ObjectSE | getTarget() 常に null を返します。 |
ClassSE<?> | getTargetClass() 常に指定されたターゲットクラスを返します。ない場合は null を返します。 |
int | hashCode() |
boolean | isStatic() 常に true を返します。 |
void | releaseTarget(ObjectSE target) リリースするものはありません。 |
StringSE | toString() |
cloneSE, finalizeSE, getClassSE, notifySE, notifyAllSE, waitSE, waitSE, waitSE
public static final EmptyTargetSource INSTANCE
EmptyTargetSource
の正規(シングルトン)インスタンス。public static EmptyTargetSource forClass(@Nullable ClassSE<?> targetClass)
targetClass
- ターゲットクラス (null
の場合があります)getTargetClass()
public static EmptyTargetSource forClass(@Nullable ClassSE<?> targetClass, boolean isStatic)
targetClass
- ターゲットクラス (null
の場合があります)isStatic
- TargetSource を静的としてマークするかどうか getTargetClass()
@Nullable public ClassSE<?> getTargetClass()
null
を返します。TargetClassAware
の getTargetClass
TargetSource
の getTargetClass
TargetSource
によって返されるターゲットの型 public boolean isStatic()
true
を返します。TargetSource
の isStatic
true
(ターゲットが不変の場合)TargetSource.getTarget()
@Nullable public ObjectSE getTarget()
null
を返します。TargetSource
の getTarget
null
public void releaseTarget(ObjectSE target)
TargetSource
の releaseTarget
target
- TargetSource.getTarget()
の呼び出しから取得したオブジェクト public int hashCode()
ObjectSE
の hashCodeSE
public StringSE toString()
ObjectSE
の toStringSE