Class MatchesList
- java.lang.Object
-
- nl.basjes.parse.useragent.analyze.MatchesList
-
- All Implemented Interfaces:
Serializable
,Iterable<MatchesList.Match>
,Collection<MatchesList.Match>
public final class MatchesList extends Object implements Collection<MatchesList.Match>, Serializable
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MatchesList.KryoSerializer
static class
MatchesList.Match
-
Constructor Summary
Constructors Constructor Description MatchesList(int newMaxSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(String key, String value, org.antlr.v4.runtime.tree.ParseTree result)
boolean
add(MatchesList.Match match)
boolean
addAll(Collection<? extends MatchesList.Match> collection)
void
clear()
boolean
contains(Object o)
boolean
containsAll(Collection<?> collection)
boolean
isEmpty()
Iterator<MatchesList.Match>
iterator()
boolean
remove(Object o)
boolean
removeAll(Collection<?> collection)
boolean
retainAll(Collection<?> collection)
int
size()
Object[]
toArray()
<T> T[]
toArray(T[] ts)
String
toString()
List<String>
toStrings()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, 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<MatchesList.Match>
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfaceCollection<MatchesList.Match>
-
clear
public void clear()
- Specified by:
clear
in interfaceCollection<MatchesList.Match>
-
iterator
@Nonnull public Iterator<MatchesList.Match> iterator()
- Specified by:
iterator
in interfaceCollection<MatchesList.Match>
- Specified by:
iterator
in interfaceIterable<MatchesList.Match>
-
toArray
@Nonnull public Object[] toArray()
- Specified by:
toArray
in interfaceCollection<MatchesList.Match>
-
add
public boolean add(MatchesList.Match match)
- Specified by:
add
in interfaceCollection<MatchesList.Match>
-
addAll
public boolean addAll(@Nonnull Collection<? extends MatchesList.Match> collection)
- Specified by:
addAll
in interfaceCollection<MatchesList.Match>
-
remove
public boolean remove(Object o)
- Specified by:
remove
in interfaceCollection<MatchesList.Match>
-
removeAll
public boolean removeAll(@Nonnull Collection<?> collection)
- Specified by:
removeAll
in interfaceCollection<MatchesList.Match>
-
retainAll
public boolean retainAll(@Nonnull Collection<?> collection)
- Specified by:
retainAll
in interfaceCollection<MatchesList.Match>
-
contains
public boolean contains(Object o)
- Specified by:
contains
in interfaceCollection<MatchesList.Match>
-
containsAll
public boolean containsAll(@Nonnull Collection<?> collection)
- Specified by:
containsAll
in interfaceCollection<MatchesList.Match>
-
toArray
public <T> T[] toArray(@Nonnull T[] ts)
- Specified by:
toArray
in interfaceCollection<MatchesList.Match>
-
-