Package games.stendhal.common.parser
Class TriggerList
java.lang.Object
- All Implemented Interfaces:
Serializable
,Cloneable
,Iterable<Expression>
,Collection<Expression>
,Deque<Expression>
,List<Expression>
,Queue<Expression>
TriggerList can be used to create a list of Expressions from Strings and search for Expressions in this list.
- See Also:
- Serialized Form
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount
-
Constructor Summary
ConstructorDescriptionTriggerList(List<String> strings)
Create a list of normalized trigger Words from a String list. -
Method Summary
Modifier and TypeMethodDescriptionfind(Expression expr)
Search for the given expression in the list.Methods inherited from class java.util.LinkedList
add, add, addAll, addAll, addFirst, addLast, clear, clone, contains, descendingIterator, element, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, offer, offerFirst, offerLast, peek, peekFirst, peekLast, poll, pollFirst, pollLast, pop, push, remove, remove, remove, removeFirst, removeFirstOccurrence, removeLast, removeLastOccurrence, set, size, spliterator, toArray, toArray
Methods inherited from class java.util.AbstractSequentialList
iterator
Methods inherited from class java.util.AbstractList
equals, hashCode, listIterator, removeRange, subList
Methods inherited from class java.util.AbstractCollection
containsAll, isEmpty, removeAll, retainAll, toString
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface java.util.List
containsAll, equals, hashCode, isEmpty, iterator, listIterator, removeAll, replaceAll, retainAll, sort, subList
-
Constructor Details
-
TriggerList
Create a list of normalized trigger Words from a String list.- Parameters:
strings
- String list
-
-
Method Details
-
find
Search for the given expression in the list.- Parameters:
expr
-- Returns:
- matching expression in the list
-