Class Intent


  • public class Intent
    extends java.lang.Object
    A representation of an intent behind a query. Intents have no structure but are just id's of a set which is predefined in the application.

    Intents are Value Objects.

    Intent ids should be human readable, start with lower case and use camel casing

    Author:
    bratseth
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static Intent Default  
    • Constructor Summary

      Constructors 
      Constructor Description
      Intent​(java.lang.String id)
      Creates an intent from a string id
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object other)  
      java.lang.String getId()
      Returns the id of this intent, never null
      int hashCode()  
      java.lang.String toString()
      Returns the id of this intent
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • Default

        public static final Intent Default
    • Constructor Detail

      • Intent

        public Intent​(java.lang.String id)
        Creates an intent from a string id
    • Method Detail

      • getId

        public java.lang.String getId()
        Returns the id of this intent, never null
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Returns the id of this intent
        Overrides:
        toString in class java.lang.Object