- 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 forRevObjects.- 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 booleanadd(RevFlag flag)booleancontains(Object o)booleancontainsAll(Collection<?> c)Iterator<RevFlag>iterator()booleanremove(Object o)intsize()-
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:
containsin interfaceCollection<RevFlag>- Specified by:
containsin interfaceSet<RevFlag>- Overrides:
containsin classAbstractCollection<RevFlag>
-
containsAll
public boolean containsAll(Collection<?> c)
- Specified by:
containsAllin interfaceCollection<RevFlag>- Specified by:
containsAllin interfaceSet<RevFlag>- Overrides:
containsAllin classAbstractCollection<RevFlag>
-
add
public boolean add(RevFlag flag)
- Specified by:
addin interfaceCollection<RevFlag>- Specified by:
addin interfaceSet<RevFlag>- Overrides:
addin classAbstractCollection<RevFlag>
-
remove
public boolean remove(Object o)
- Specified by:
removein interfaceCollection<RevFlag>- Specified by:
removein interfaceSet<RevFlag>- Overrides:
removein classAbstractCollection<RevFlag>
-
size
public int size()
- Specified by:
sizein interfaceCollection<RevFlag>- Specified by:
sizein interfaceSet<RevFlag>- Specified by:
sizein classAbstractCollection<RevFlag>
-
-