Top Fields Constructors Methods
org.terracotta.context.extractor

pack-priv Class LazyContextElement

extends Object
implements ContextElement
Class Inheritance
All Implemented Interfaces
org.terracotta.context.ContextElement
Imports
java.util.Collections, .HashMap, .Map, .Map.Entry, org.terracotta.context.ContextElement

Field Summary

Modifier and TypeField and Description
private final Map<? extends String, AttributeGetter<Object>>
private final Class<T>

Constructor Summary

AccessConstructor and Description
public
LazyContextElement(Class<T> identifier, Map<? extends String, AttributeGetter<Object>> attributes)

Method Summary

Modifier and TypeMethod and Description
public Map<String, Object>
attributes()

Implements org.terracotta.context.ContextElement.attributes.

The set of attributes for the associated Java object.
public Class<T>
identifier()

Implements org.terracotta.context.ContextElement.identifier.

The type of the associated Java object.
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

attributesback to summary
private final Map<? extends String, AttributeGetter<Object>> attributes
identifierback to summary
private final Class<T> identifier

Constructor Detail

LazyContextElementback to summary
public LazyContextElement(Class<T> identifier, Map<? extends String, AttributeGetter<Object>> attributes)

Method Detail

attributesback to summary
public Map<String, Object> attributes()

Implements org.terracotta.context.ContextElement.attributes.

Doc from org.terracotta.context.ContextElement.attributes.

The set of attributes for the associated Java object.

Returns:Map<String, Object>

the associated object's attributes

Annotations
@Override
identifierback to summary
public Class<T> identifier()

Implements org.terracotta.context.ContextElement.identifier.

Doc from org.terracotta.context.ContextElement.identifier.

The type of the associated Java object.

Returns:Class<T>

the associated object's class

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override