|
BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This is the list of matching items scored by how well they match.
suggestion (Array)
[Suggestions] <*>------> [theory.smart.ebusiness.shoppingadvisor.Suggestion
]
0..*
SuggestionsHome
,
SuggestionsImpl
Method Summary | |
void |
addSuggestion(int index,
Suggestion suggestion)
Inserts the specified suggestion at the specified position in the suggestion list. |
boolean |
addSuggestion(Suggestion suggestion)
Appends the specified suggestion to the end of the suggestion list. |
boolean |
addSuggestions(com.sun.java.util.collections.ArrayList suggestions)
Appends all of the suggestions in the specified collection to the end of the suggestion list, in the order that they are returned by the specified collection's iterator. |
boolean |
addSuggestions(int index,
com.sun.java.util.collections.ArrayList suggestions)
Inserts all of the suggestions in the specified collection into this list, starting at the specified position. |
void |
applyItemByDegree(ItemByDegree ibd)
Apply an Item by degree to the list. |
void |
applyItemByDegree(ItemByDegree ibd,
boolean addNewItems)
Apply an Item by degree to the list. |
boolean |
containsSuggestion(Suggestion suggestion)
Returns true if the suggestion list contains the specified element. |
int |
getNumberOfSuggestions()
Returns the number of suggestions in the suggestion list. |
Suggestion |
getSuggestion(int index)
Returns the suggestion at the specified position in the suggestion list. |
com.sun.java.util.collections.ArrayList |
getSuggestions()
Returns all of the suggestions in the suggestion list. |
com.sun.java.util.collections.ArrayList |
getSuggestions(int fromIndex,
int toIndex)
Returns a view of the portion of the suggestion list between fromIndex, inclusive, and toIndex, exclusive. |
int |
indexOfSuggestion(Suggestion suggestion)
Returns the index in the suggestion list of the first occurrence of the specified element, or -1 if the suggestion list does not contain this element. |
boolean |
isSuggestionsEmtpy()
Returns true if the suggestion list contains no suggestions. |
int |
lastIndexOfSuggestion(Suggestion suggestion)
Returns the index in the suggestion list of the last occurrence of the specified element, or -1 if the suggestion list does not contain this element. |
void |
orderByItem()
Order the list by the item key so that it can be more quickly searched. |
void |
orderByScore()
Order the suggestions by the degree to which they match the request. |
void |
removeAllSuggestions()
Removes all of the suggestions from the suggestion list. |
Suggestion |
removeSuggestion(int index)
Removes the suggestion at the specified position in the suggestion list. |
boolean |
removeSuggestion(Suggestion suggestion)
Removes the first occurrence of the specified suggestion in the suggestion list. |
Suggestion |
setSuggestion(int index,
Suggestion suggestion)
Replaces the suggestion at the specified position in the suggestion list with the specified element. |
void |
trim(int count)
Trim the count of suggestions to the specified length. |
Methods inherited from interface theory.smart.foundation.Belonging |
equals,
value |
Methods inherited from interface com.sun.java.util.collections.Comparable |
compareTo |
Method Detail |
public void addSuggestion(int index, Suggestion suggestion)
index
- index at which the specified suggestion is to be inserted.suggestion
- suggestion to be inserted.public boolean addSuggestion(Suggestion suggestion)
suggestion
- suggestion to be appended to the suggestion list.public boolean addSuggestions(int index, com.sun.java.util.collections.ArrayList suggestions)
index
- index at which to insert first element
from the specified collection.suggestions
- suggestions to be inserted into the suggestion list.public boolean addSuggestions(com.sun.java.util.collections.ArrayList suggestions)
suggestions
- suggestions to be inserted into the suggestion list.public boolean containsSuggestion(Suggestion suggestion)
suggestion
- suggestion whose presence in the suggestion list is to be tested.public Suggestion getSuggestion(int index)
index
- index of suggestion to return.public com.sun.java.util.collections.ArrayList getSuggestions(int fromIndex, int toIndex)
fromIndex
- low endpoint (inclusive) of the subList.toKey
- high endpoint (exclusive) of the subList.public com.sun.java.util.collections.ArrayList getSuggestions()
public int getNumberOfSuggestions()
public int indexOfSuggestion(Suggestion suggestion)
suggestion
- suggestion to search for.public boolean isSuggestionsEmtpy()
public int lastIndexOfSuggestion(Suggestion suggestion)
suggestion
- suggestion to search for.public void removeAllSuggestions()
public Suggestion removeSuggestion(int index)
index
- the index of the suggestion to removed.public boolean removeSuggestion(Suggestion suggestion)
suggestion
- suggestion to be removed from the suggestion list, if present.public Suggestion setSuggestion(int index, Suggestion suggestion)
index
- index of suggestion to replace.suggestion
- suggestion to be stored at the specified position.public void applyItemByDegree(ItemByDegree ibd) throws java.rmi.RemoteException
public void applyItemByDegree(ItemByDegree ibd, boolean addNewItems) throws java.rmi.RemoteException
public void orderByScore() throws java.rmi.RemoteException
public void orderByItem() throws java.rmi.RemoteException
public void trim(int count) throws java.rmi.RemoteException
|
BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |