AttributeHolder implementation.
| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| protected class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final DefaultAttributeBuilder | |
| private final UnsafeAttributeHolder. | |
| private final UnsafeAttributeHolder. | |
| private final UnsafeAttributeHolder. | |
| private final UnsafeAttributeHolder. | |
| pack-priv final UnsafeAttributeHolder. | |
| private boolean | |
| private Map |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| attributeBuilder | back to summary |
|---|---|
| pack-priv final DefaultAttributeBuilder attributeBuilder | |
| h1 | back to summary |
|---|---|
| private final UnsafeAttributeHolder. | |
| h2 | back to summary |
|---|---|
| private final UnsafeAttributeHolder. | |
| h3 | back to summary |
|---|---|
| private final UnsafeAttributeHolder. | |
| h4 | back to summary |
|---|---|
| private final UnsafeAttributeHolder. | |
| indexedAttributeAccessor | back to summary |
|---|---|
| pack-priv final UnsafeAttributeHolder. | |
| isSet | back to summary |
|---|---|
| private boolean isSet | |
| valueMap | back to summary |
|---|---|
| private Map<Integer, Object> valueMap | |
| UnsafeAttributeHolder | back to summary |
|---|---|
| pack-priv UnsafeAttributeHolder(final DefaultAttributeBuilder attributeBuilder) | |
| clear | back to summary |
|---|---|
| public void clear() Implements org. Doc from org. Clear all the attributes.
| |
| copyFrom | back to summary |
|---|---|
| public void copyFrom(final AttributeHolder srcAttributes) Implements org. Doc from org. Copies attributes from the srcAttributes to this AttributeHolder
| |
| copyTo | back to summary |
|---|---|
| public void copyTo(final AttributeHolder dstAttributes) Implements org. Doc from org. Copies attributes from this AttributeHolder to the dstAttributes.
| |
| getAttribute | back to summary |
|---|---|
| public Object getAttribute(final String name) Implements org. Doc from org. Return an object based on a name.
| |
| getAttribute | back to summary |
|---|---|
| public Object getAttribute(final String name, final Supplier<T> initializer) Implements org. Doc from org. Return an object based on a name.
| |
| getAttributeBuilder | back to summary |
|---|---|
| public AttributeBuilder getAttributeBuilder() Implements org. Doc from org. Get AttributeBuilder, associated with this holder
| |
| getAttributeNames | back to summary |
|---|---|
| public Set Implements org. Doc from org. Return a
| |
| getIndexedAttributeAccessor | back to summary |
|---|---|
| public IndexedAttributeAccessor getIndexedAttributeAccessor() Implements org. Doc from org. If AttributeHolder supports attribute access by index - it will return an
| |
| recycle | back to summary |
|---|---|
| public void recycle() Implements org. Doc from org. Recycle AttributeHolder
| |
| removeAttribute | back to summary |
|---|---|
| public Object removeAttribute(final String name) Implements org. Doc from org. Remove a name/value object.
| |
| setAttribute | back to summary |
|---|---|
| public void setAttribute(final String name, final Object value) Implements org. Doc from org. Set a name/value object.
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv int | |
| pack-priv boolean | |
| pack-priv Object |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| private void | |
| private boolean | |
| pack-priv Object |
| idx | back to summary |
|---|---|
| pack-priv int idx | |
| isSet | back to summary |
|---|---|
| pack-priv boolean isSet | |
| value | back to summary |
|---|---|
| pack-priv Object value | |
| Holder | back to summary |
|---|---|
| private Holder() | |
| clear | back to summary |
|---|---|
| pack-priv void clear() | |
| copyFrom | back to summary |
|---|---|
| private void copyFrom(final UnsafeAttributeHolder. | |
| is | back to summary |
|---|---|
| private boolean is(final int idx) | |
| set | back to summary |
|---|---|
| pack-priv Object set(final int idx, final Object value) | |
IndexedAttributeAccessor implementation.
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| private UnsafeAttributeHolder. | |
| public Object | getAttribute(final int index)
Implements org. Internal method for dynamic attribute support. |
| public Object | getAttribute(final int index, final Supplier<T> initializer)
Implements org. Internal method for dynamic attribute support. |
| private Object | |
| private UnsafeAttributeHolder. | |
| private UnsafeAttributeHolder. | |
| public Object | removeAttribute(final int index)
Implements org. Internal method for dynamic attribute support. |
| private Object | |
| public void | setAttribute(final int index, final Object value)
Implements org. Internal method for dynamic attribute support. |
| private Object |
| IndexedAttributeAccessorImpl | back to summary |
|---|---|
| protected IndexedAttributeAccessorImpl() | |
| emptyHolder | back to summary |
|---|---|
| private UnsafeAttributeHolder. | |
| getAttribute | back to summary |
|---|---|
| public Object getAttribute(final int index) Implements org. Doc from org. Internal method for dynamic attribute support. Return the value of the attribute by index.
| |
| getAttribute | back to summary |
|---|---|
| public Object getAttribute(final int index, final Supplier<T> initializer) Implements org. Doc from org. Internal method for dynamic attribute support. Return the value of the attribute by index. If the attribute with such index is not set, set it to the default value, using the initializer, and return the default.
| |
| getAttribute | back to summary |
|---|---|
| private Object getAttribute(final Attribute<T> attribute, final Supplier<T> initializer) | |
| holderByIdx | back to summary |
|---|---|
| private UnsafeAttributeHolder. | |
| nullHolder | back to summary |
|---|---|
| private UnsafeAttributeHolder. | |
| removeAttribute | back to summary |
|---|---|
| public Object removeAttribute(final int index) Implements org. Doc from org. Internal method for dynamic attribute support. Removes the attribute with the index and returns its previous value.
| |
| removeAttribute | back to summary |
|---|---|
| private Object removeAttribute(final Attribute<T> attribute) | |
| setAttribute | back to summary |
|---|---|
| public void setAttribute(final int index, final Object value) Implements org. Doc from org. Internal method for dynamic attribute support. Set the attribute with the index to value.
| |
| setAttribute | back to summary |
|---|---|
| private Object setAttribute(final Attribute<T> attribute, final Object value) | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static void | |
| private static Object | |
| private static Object |
| MapperAccessor | back to summary |
|---|---|
| private MapperAccessor() | |
| copy | back to summary |
|---|---|
| private static void copy(final UnsafeAttributeHolder src, final UnsafeAttributeHolder dst) | |
| getValue | back to summary |
|---|---|
| private static Object getValue(final UnsafeAttributeHolder holder, final Integer idx) | |
| setValue | back to summary |
|---|---|
| private static Object setValue(final UnsafeAttributeHolder holder, final Integer idx, final Object value) | |