public class FakeDisposable extends java.lang.Object implements Disposable, Scannable
Disposable.Composite, Disposable.Swap
Scannable.Attr<T>
限定符和类型 | 字段和说明 |
---|---|
int |
disposed |
OPERATOR_NAME_UNRELATED_WORDS_PATTERN
构造器和说明 |
---|
FakeDisposable() |
限定符和类型 | 方法和说明 |
---|---|
void |
dispose()
Cancel or dispose the underlying task or resource.
|
boolean |
isDisposed()
Optionally return true when the resource or task is disposed.
|
java.lang.Object |
scanUnsafe(Scannable.Attr key)
This method is used internally by components to define their key-value mappings
in a single place.
|
actuals, from, inners, isScanAvailable, name, parents, scan, scanOrDefault, stepName, steps, tags, tagsDeduplicated
public boolean isDisposed()
Disposable
Implementations are not required to track disposition and as such may never return true even when disposed. However, they MUST only return true when there's a guarantee the resource or task is disposed.
isDisposed
在接口中 Disposable
public void dispose()
Disposable
Implementations are required to make this method idempotent.
dispose
在接口中 Disposable
public java.lang.Object scanUnsafe(Scannable.Attr key)
Scannable
Scannable.Attr
key,
implementors should take care to return values of the correct type, and return
null if no specific value is available.
For public consumption of attributes, prefer using Scannable.scan(Attr)
, which will
return a typed value and fall back to the key's default if the component didn't
define any mapping.
scanUnsafe
在接口中 Scannable
key
- a Scannable.Attr
to resolve for the component.