Class Attributes

java.lang.Object
com.persequor.event.Attributes
All Implemented Interfaces:
Model

public class Attributes extends Object implements Model
  • Constructor Details

    • Attributes

      public Attributes()
  • Method Details

    • add

      public Attributes add(String attributeName, String value)
      Adds an attribute to this collection
      Parameters:
      attributeName - attribute name
      value - attribute value
      Returns:
      a reference to self
    • all

      public Map<String,String> all()
      Returns:
      all attributes in collection
    • get

      public String get(String key)
      Returns an attribute value by key
      Parameters:
      key - the key of the attribute you want
      Returns:
      the attribute value
    • getAttributes

      public HashMap<String,String> getAttributes()