org.eclipse.jgit.revwalk
Class RevFlagSet

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractSet<RevFlag>
          extended by org.eclipse.jgit.revwalk.RevFlagSet
All Implemented Interfaces:
java.lang.Iterable<RevFlag>, java.util.Collection<RevFlag>, java.util.Set<RevFlag>

public class RevFlagSet
extends java.util.AbstractSet<RevFlag>

Multiple application level mark bits for RevObjects.

See Also:
RevFlag

Constructor Summary
RevFlagSet()
          Create an empty set of flags.
RevFlagSet(java.util.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
 boolean add(RevFlag flag)
           
 boolean contains(java.lang.Object o)
           
 boolean containsAll(java.util.Collection<?> c)
           
 java.util.Iterator<RevFlag> iterator()
           
 boolean remove(java.lang.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.Set
addAll, clear, isEmpty, retainAll, toArray, 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(java.util.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(java.lang.Object o)
Specified by:
contains in interface java.util.Collection<RevFlag>
Specified by:
contains in interface java.util.Set<RevFlag>
Overrides:
contains in class java.util.AbstractCollection<RevFlag>

containsAll

public boolean containsAll(java.util.Collection<?> c)
Specified by:
containsAll in interface java.util.Collection<RevFlag>
Specified by:
containsAll in interface java.util.Set<RevFlag>
Overrides:
containsAll in class java.util.AbstractCollection<RevFlag>

add

public boolean add(RevFlag flag)
Specified by:
add in interface java.util.Collection<RevFlag>
Specified by:
add in interface java.util.Set<RevFlag>
Overrides:
add in class java.util.AbstractCollection<RevFlag>

remove

public boolean remove(java.lang.Object o)
Specified by:
remove in interface java.util.Collection<RevFlag>
Specified by:
remove in interface java.util.Set<RevFlag>
Overrides:
remove in class java.util.AbstractCollection<RevFlag>

iterator

public java.util.Iterator<RevFlag> iterator()
Specified by:
iterator in interface java.lang.Iterable<RevFlag>
Specified by:
iterator in interface java.util.Collection<RevFlag>
Specified by:
iterator in interface java.util.Set<RevFlag>
Specified by:
iterator in class java.util.AbstractCollection<RevFlag>

size

public int size()
Specified by:
size in interface java.util.Collection<RevFlag>
Specified by:
size in interface java.util.Set<RevFlag>
Specified by:
size in class java.util.AbstractCollection<RevFlag>


Copyright © 2013. All Rights Reserved.