jetbrains.buildServer.vcs
Class VcsItem

java.lang.Object
  extended by jetbrains.buildServer.vcs.VcsItem
All Implemented Interfaces:
java.lang.Comparable

public final class VcsItem
extends java.lang.Object
implements java.lang.Comparable

This class represents a named item in some directory, which can be either directory or file.

Author:
kir

Constructor Summary
VcsItem(java.lang.String name, boolean isDirectory)
           
 
Method Summary
 int compareTo(java.lang.Object o)
           
 boolean equals(java.lang.Object o)
           
 java.lang.String getName()
           
 int hashCode()
           
 boolean isDirectory()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VcsItem

public VcsItem(@NotNull
               java.lang.String name,
               boolean isDirectory)
Method Detail

getName

@NotNull
public java.lang.String getName()
Returns:
name of the item

isDirectory

public boolean isDirectory()
Returns:
true if this item represents a directory

compareTo

public int compareTo(java.lang.Object o)
Specified by:
compareTo in interface java.lang.Comparable

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object