public abstract class RevObject extends ObjectIdOwnerMap.Entry
Modifier and Type | Method and Description |
---|---|
void |
add(RevFlag flag)
Add a flag to this object.
|
void |
add(RevFlagSet set)
Add a set of flags to this object.
|
protected void |
appendCoreFlags(StringBuilder s) |
ObjectId |
getId()
Get the name of this object.
|
abstract int |
getType()
Get Git object type.
|
boolean |
has(RevFlag flag)
Test to see if the flag has been set on this object.
|
boolean |
hasAll(RevFlagSet set)
Test to see if all flags in the set have been set on this object.
|
boolean |
hasAny(RevFlagSet set)
Test to see if any flag in the set has been set on this object.
|
void |
remove(RevFlag flag)
Remove a flag from this object.
|
void |
remove(RevFlagSet set)
Remove a set of flags from this object.
|
String |
toString() |
equals, fromRaw, fromRaw, fromRaw, fromRaw, fromString, fromString, isId, toObjectId, toString, zeroId
public abstract int getType()
Constants
.public final ObjectId getId()
public final boolean has(RevFlag flag)
flag
- the flag to test.public final boolean hasAny(RevFlagSet set)
set
- the flags to test.public final boolean hasAll(RevFlagSet set)
set
- the flags to test.public final void add(RevFlag flag)
If the flag is already set on this object then the method has no effect.
flag
- the flag to mark on this object, for later testing.public final void add(RevFlagSet set)
set
- the set of flags to mark on this object, for later testing.public final void remove(RevFlag flag)
If the flag is not set on this object then the method has no effect.
flag
- the flag to remove from this object.public final void remove(RevFlagSet set)
set
- the flag to remove from this object.public String toString()
toString
in class AnyObjectId
protected void appendCoreFlags(StringBuilder s)
s
- buffer to append a debug description of core RevFlags onto.Copyright © 2013. All rights reserved.