当前页面:
在线文档首页 >
NetBeans API Javadoc 4.1.0
NumDotRevisionItem (NetBeans VCS API) - NetBeans API Javadoc 4.1.0
org.netbeans.modules.vcscore.versioning.impl
Class NumDotRevisionItem
java.lang.Object
org.netbeans.modules.vcscore.versioning.RevisionItem
org.netbeans.modules.vcscore.versioning.impl.NumDotRevisionItem
- All Implemented Interfaces:
- Comparable, Node.Cookie, Serializable
- public class NumDotRevisionItem
- extends RevisionItem
The revision item that represents revisions of the form x.y
where even number of dots represents branches and odd represents revisions.
- See Also:
- Serialized Form
Methods inherited from class org.netbeans.modules.vcscore.versioning.RevisionItem |
addAdditionalPropertiesSet, addProperty, addPropertyChangeListener, addTagName, compareTo, firePropertyChange, getAdditionalProperties, getAdditionalPropertiesSetNames, getAdditionalPropertiesSets, getAuthor, getDate, getDisplayName, getLocker, getMessage, getRevision, getRevisionVCS, getTagNames, hashCode, isCurrent, isRevision, removePropertyChangeListener, removeTagName, setAuthor, setCurrent, setDate, setDisplayName, setLocker, setMessage, setRevisionVCS, setTagNames, toString |
NumDotRevisionItem
public NumDotRevisionItem(String revision)
- Creates new RevisionItem
isBranch
public boolean isBranch()
- Description copied from class:
RevisionItem
- Find whether the current item represents a branch.
- Specified by:
isBranch
in class RevisionItem
- Returns:
true
when the current item represents a branch,
false
otherwise.
numDots
public static int numDots(String str)
isDirectSubItemOf
public boolean isDirectSubItemOf(RevisionItem item)
- Description copied from class:
RevisionItem
- Test whether the current item is a direct sub-item of the given item.
This method is used to constuct the revision children.
- Specified by:
isDirectSubItemOf
in class RevisionItem
- Parameters:
item
- The item to test or null
.
compareTo
protected int compareTo(RevisionItem item)
- Description copied from class:
RevisionItem
- Compare to another revision item. See
Comparable.compareTo(java.lang.Object)
for the contract definition.
- Specified by:
compareTo
in class RevisionItem