Predictions 4.10.0.0

hirondelle.predict.pub.search
Class SearchResult

Object
  extended by hirondelle.predict.pub.search.SearchResult

public final class SearchResult
extends Object

Simple data carrier for search results. Does no validation.


Constructor Summary
SearchResult(SafeText aText, Id aOutcome, DateTime aCreationDate, SafeText aCreatorScreenName, Id aPredictionListId)
          Constructor.
 
Method Summary
 boolean equals(Object aThat)
           
 DateTime getCreationDate()
           
 SafeText getCreatorScreenName()
           
 Code getOutcome()
           
 Id getPredictionListId()
           
 SafeText getText()
           
 int hashCode()
           
 String toString()
          Intended for debugging only.
 
Methods inherited from class Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SearchResult

public SearchResult(SafeText aText,
                    Id aOutcome,
                    DateTime aCreationDate,
                    SafeText aCreatorScreenName,
                    Id aPredictionListId)
             throws ModelCtorException
Constructor.

Parameters:
aText - the text of the prediction (required)
aOutcome - the outcome of the prediction, if any (optional)
aCreationDate - the date the prediction was made (required)
aCreatorScreenName - the screen name of the user who made the prediction
aPredictionListId - id of the prediction list that contains the prediction (required)
Throws:
ModelCtorException
Method Detail

getText

public SafeText getText()

getOutcome

public Code getOutcome()

getCreationDate

public DateTime getCreationDate()

getCreatorScreenName

public SafeText getCreatorScreenName()

getPredictionListId

public Id getPredictionListId()

toString

public String toString()
Intended for debugging only.

Overrides:
toString in class Object

equals

public boolean equals(Object aThat)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

Predictions 4.10.0.0

Copyright Hirondelle Systems - Generated 2013Oct19.12.27