Class Intent

java.lang.Object
com.yahoo.search.intent.model.Intent

public class Intent extends 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 Details

    • Default

      public static final Intent Default
  • Constructor Details

    • Intent

      public Intent(String id)
      Creates an intent from a string id
  • Method Details

    • getId

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

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

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • toString

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