Class MatcherList
- java.lang.Object
-
- nl.basjes.parse.useragent.analyze.MatcherList
-
- All Implemented Interfaces:
Serializable
,Iterable<Matcher>
,Collection<Matcher>
public final class MatcherList extends Object implements Collection<Matcher>, Serializable
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MatcherList.KryoSerializer
-
Constructor Summary
Constructors Constructor Description MatcherList(int newMaxSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
add(Matcher matcher)
boolean
addAll(Collection<? extends Matcher> collection)
void
clear()
boolean
contains(Object o)
boolean
containsAll(Collection<?> collection)
boolean
isEmpty()
Iterator<Matcher>
iterator()
boolean
remove(Object o)
boolean
removeAll(Collection<?> collection)
boolean
retainAll(Collection<?> collection)
int
size()
Object[]
toArray()
<T> T[]
toArray(T[] ts)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Collection
equals, hashCode, parallelStream, removeIf, spliterator, stream, toArray
-
-
-
-
Method Detail
-
size
public int size()
- Specified by:
size
in interfaceCollection<Matcher>
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfaceCollection<Matcher>
-
clear
public void clear()
- Specified by:
clear
in interfaceCollection<Matcher>
-
add
public boolean add(Matcher matcher)
- Specified by:
add
in interfaceCollection<Matcher>
-
toArray
@Nonnull public Object[] toArray()
- Specified by:
toArray
in interfaceCollection<Matcher>
-
addAll
public boolean addAll(@Nonnull Collection<? extends Matcher> collection)
- Specified by:
addAll
in interfaceCollection<Matcher>
-
remove
public boolean remove(Object o)
- Specified by:
remove
in interfaceCollection<Matcher>
-
removeAll
public boolean removeAll(@Nonnull Collection<?> collection)
- Specified by:
removeAll
in interfaceCollection<Matcher>
-
retainAll
public boolean retainAll(@Nonnull Collection<?> collection)
- Specified by:
retainAll
in interfaceCollection<Matcher>
-
contains
public boolean contains(Object o)
- Specified by:
contains
in interfaceCollection<Matcher>
-
containsAll
public boolean containsAll(@Nonnull Collection<?> collection)
- Specified by:
containsAll
in interfaceCollection<Matcher>
-
toArray
public <T> T[] toArray(@Nonnull T[] ts)
- Specified by:
toArray
in interfaceCollection<Matcher>
-
-