K - the lookup key type@FunctionalInterface public interface OriginLookup<K>
Origin
information from a given key. Can be used to add origin support to existing classes.| Modifier and Type | Method and Description |
|---|---|
Origin |
getOrigin(K key)
Return the origin of the given key or
null if the origin cannot be
determined. |
static <K> Origin |
getOrigin(Object source,
K key)
Attempt to lookup the origin from the given source.
|
default boolean |
isImmutable()
Return
true if this lookup is immutable and has contents that will never
change. |
Origin getOrigin(K key)
null if the origin cannot be
determined.key - the key to lookupnulldefault boolean isImmutable()
true if this lookup is immutable and has contents that will never
change.static <K> Origin getOrigin(Object source, K key)
OriginLookup or if an exception occurs during lookup then null is
returned.K - the key typesource - the source objectkey - the key to lookupOrigin or nullCopyright © 2021 Pivotal Software, Inc.. All rights reserved.