Package com.yahoo.search.intent.model
Class Source
- java.lang.Object
-
- com.yahoo.search.intent.model.Source
-
public class Source extends java.lang.Object
A representation of a source. Sources have no structure but are just id of a set which is defined in the application.Sources are Value Objects.
Source ids should be human readable, start with lower case and use camel casing
- Author:
- bratseth
-
-
Constructor Summary
Constructors Constructor Description Source(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 source, never nullint
hashCode()
java.lang.String
toString()
Returns the id of this source
-
-
-
Method Detail
-
getId
public java.lang.String getId()
Returns the id of this source, never null
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
Returns the id of this source- Overrides:
toString
in classjava.lang.Object
-
-