Class Tagged

  • All Implemented Interfaces:, scala.Equals, scala.Product

    public class Tagged
    extends java.lang.Object
    implements scala.Product,
    The journal may support tagging of events that are used by the EventsByTag query and it may support specifying the tags via an EventAdapter that wraps the events in a Tagged with the given tags. The journal may support other ways of doing tagging. Please consult the documentation of the specific journal implementation for more information.

    The journal will unwrap the event and store the payload.

    See Also:
    Serialized Form
    • Constructor Summary

      Constructor Description
      Tagged​(java.lang.Object payload, java.util.Set<java.lang.String> tags)
      Java API
      Tagged​(java.lang.Object payload, scala.collection.immutable.Set<java.lang.String> tags)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static Tagged apply​(java.lang.Object payload, scala.collection.immutable.Set<java.lang.String> tags)  
      boolean canEqual​(java.lang.Object x$1)  
      Tagged copy​(java.lang.Object payload, scala.collection.immutable.Set<java.lang.String> tags)  
      java.lang.Object copy$default$1()  
      scala.collection.immutable.Set<java.lang.String> copy$default$2()  
      boolean equals​(java.lang.Object x$1)  
      int hashCode()  
      java.lang.Object payload()  
      int productArity()  
      java.lang.Object productElement​(int x$1)  
      java.lang.String productElementName​(int x$1)  
      scala.collection.Iterator<java.lang.Object> productIterator()  
      java.lang.String productPrefix()  
      scala.collection.immutable.Set<java.lang.String> tags()  
      java.lang.String toString()  
      static scala.Option<scala.Tuple2<java.lang.Object,​scala.collection.immutable.Set<java.lang.String>>> unapply​(Tagged x$0)  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface scala.Product

    • Constructor Detail

      • Tagged

        public Tagged​(java.lang.Object payload,
                      scala.collection.immutable.Set<java.lang.String> tags)
      • Tagged

        public Tagged​(java.lang.Object payload,
                      java.util.Set<java.lang.String> tags)
        Java API
    • Method Detail

      • apply

        public static Tagged apply​(java.lang.Object payload,
                                   scala.collection.immutable.Set<java.lang.String> tags)
      • unapply

        public static scala.Option<scala.Tuple2<java.lang.Object,​scala.collection.immutable.Set<java.lang.String>>> unapply​(Tagged x$0)
      • payload

        public java.lang.Object payload()
      • tags

        public scala.collection.immutable.Set<java.lang.String> tags()
      • copy

        public Tagged copy​(java.lang.Object payload,
                           scala.collection.immutable.Set<java.lang.String> tags)
      • copy$default$1

        public java.lang.Object copy$default$1()
      • copy$default$2

        public scala.collection.immutable.Set<java.lang.String> copy$default$2()
      • productPrefix

        public java.lang.String productPrefix()
        Specified by:
        productPrefix in interface scala.Product
      • productArity

        public int productArity()
        Specified by:
        productArity in interface scala.Product
      • productElement

        public java.lang.Object productElement​(int x$1)
        Specified by:
        productElement in interface scala.Product
      • productIterator

        public scala.collection.Iterator<java.lang.Object> productIterator()
        Specified by:
        productIterator in interface scala.Product
      • canEqual

        public boolean canEqual​(java.lang.Object x$1)
        Specified by:
        canEqual in interface scala.Equals
      • productElementName

        public java.lang.String productElementName​(int x$1)
        Specified by:
        productElementName in interface scala.Product
      • hashCode

        public int hashCode()
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object x$1)
        Specified by:
        equals in interface scala.Equals
        equals in class java.lang.Object