Class GuiceAttributes

java.lang.Object
dev.getelements.elements.sdk.guice.GuiceAttributes
All Implemented Interfaces:
Attributes

public class GuiceAttributes extends Object implements Attributes
  • Constructor Details

    • GuiceAttributes

      public GuiceAttributes()
  • Method Details

    • getAttributeNames

      public Set<String> getAttributeNames()
      Description copied from interface: Attributes
      Gets a List<String> containing all attribute names contained in this instance.
      Specified by:
      getAttributeNames in interface Attributes
      Returns:
      the List<String> of attribute names
    • getAttributeOptional

      public Optional<Object> getAttributeOptional(String name)
      Description copied from interface: Attributes
      Gets the attribute associated with this Attributes object.
      Specified by:
      getAttributeOptional in interface Attributes
      Parameters:
      name - the name of the attribute to fetch
      Returns:
      an Optional<Object> for the value
    • immutableCopy

      public Attributes immutableCopy()
      Description copied from interface: Attributes
      Returns a copy of this Attributes as an immutable copy. Alternatively, if this instance is already immutable, then this will return this instance.
      Specified by:
      immutableCopy in interface Attributes
      Returns:
      an immutable copy of this Attributes
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getInjector

      public com.google.inject.Injector getInjector()
    • setInjector

      @Inject public void setInjector(com.google.inject.Injector injector)