Class GuiceAttributes
java.lang.Object
dev.getelements.elements.sdk.guice.GuiceAttributes
- All Implemented Interfaces:
Attributes
-
Nested Class Summary
Nested classes/interfaces inherited from interface dev.getelements.elements.sdk.Attributes
Attributes.Attribute<T> -
Field Summary
Fields inherited from interface dev.getelements.elements.sdk.Attributes
EMPTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetAttributeOptional(String name) Gets the attribute associated with thisAttributesobject.com.google.inject.InjectorinthashCode()Returns a copy of thisAttributesas an immutable copy.voidsetInjector(com.google.inject.Injector injector) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.getelements.elements.sdk.Attributes
asMap, asProperties, asProperties, getAttribute, stream
-
Constructor Details
-
GuiceAttributes
public GuiceAttributes()
-
-
Method Details
-
getAttributeNames
Description copied from interface:Attributes- Specified by:
getAttributeNamesin interfaceAttributes- Returns:
- the
List<String>of attribute names
-
getAttributeOptional
Description copied from interface:AttributesGets the attribute associated with thisAttributesobject.- Specified by:
getAttributeOptionalin interfaceAttributes- Parameters:
name- the name of the attribute to fetch- Returns:
- an
Optional<Object>for the value
-
immutableCopy
Description copied from interface:AttributesReturns a copy of thisAttributesas an immutable copy. Alternatively, if this instance is already immutable, then this will return this instance.- Specified by:
immutableCopyin interfaceAttributes- Returns:
- an immutable copy of this
Attributes
-
equals
-
hashCode
public int hashCode() -
getInjector
public com.google.inject.Injector getInjector() -
setInjector
@Inject public void setInjector(com.google.inject.Injector injector)
-