Package org.eclipse.jgit.revwalk
Class RevFlagSet
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractSet<RevFlag>
-
- org.eclipse.jgit.revwalk.RevFlagSet
-
public class RevFlagSet extends AbstractSet<RevFlag>
Multiple application level mark bits forRevObject
s.- See Also:
RevFlag
-
-
Constructor Summary
Constructors Constructor Description RevFlagSet()
Create an empty set of flags.RevFlagSet(Collection<RevFlag> s)
Create a set of flags, copied from an existing collection.RevFlagSet(RevFlagSet s)
Create a set of flags, copied from an existing set.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
add(RevFlag flag)
boolean
contains(Object o)
boolean
containsAll(Collection<?> c)
Iterator<RevFlag>
iterator()
boolean
remove(Object o)
int
size()
-
Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAll
-
Methods inherited from class java.util.AbstractCollection
addAll, clear, isEmpty, retainAll, toArray, toArray, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
-
-
-
Constructor Detail
-
RevFlagSet
public RevFlagSet()
Create an empty set of flags.
-
RevFlagSet
public RevFlagSet(RevFlagSet s)
Create a set of flags, copied from an existing set.- Parameters:
s
- the set to copy flags from.
-
RevFlagSet
public RevFlagSet(Collection<RevFlag> s)
Create a set of flags, copied from an existing collection.- Parameters:
s
- the collection to copy flags from.
-
-
Method Detail
-
contains
public boolean contains(Object o)
- Specified by:
contains
in interfaceCollection<RevFlag>
- Specified by:
contains
in interfaceSet<RevFlag>
- Overrides:
contains
in classAbstractCollection<RevFlag>
-
containsAll
public boolean containsAll(Collection<?> c)
- Specified by:
containsAll
in interfaceCollection<RevFlag>
- Specified by:
containsAll
in interfaceSet<RevFlag>
- Overrides:
containsAll
in classAbstractCollection<RevFlag>
-
add
public boolean add(RevFlag flag)
- Specified by:
add
in interfaceCollection<RevFlag>
- Specified by:
add
in interfaceSet<RevFlag>
- Overrides:
add
in classAbstractCollection<RevFlag>
-
remove
public boolean remove(Object o)
- Specified by:
remove
in interfaceCollection<RevFlag>
- Specified by:
remove
in interfaceSet<RevFlag>
- Overrides:
remove
in classAbstractCollection<RevFlag>
-
size
public int size()
- Specified by:
size
in interfaceCollection<RevFlag>
- Specified by:
size
in interfaceSet<RevFlag>
- Specified by:
size
in classAbstractCollection<RevFlag>
-
-