Modifier and Type | Field and Description |
---|---|
java.lang.String |
groupName |
java.nio.file.attribute.FileTime |
lastModifiedTime |
java.lang.Integer |
mode |
java.lang.String |
name |
static java.util.Set<java.lang.String> |
REQUIRED_ATTRIBUTES |
java.lang.String |
userName |
static java.util.Set<java.lang.String> |
VALID_ATTRIBUTES |
Constructor and Description |
---|
Directory(java.lang.String name) |
Directory(java.lang.String name,
java.lang.Integer mode,
java.lang.String userName,
java.lang.String groupName,
java.nio.file.attribute.FileTime lastModifiedTime) |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
attributesValid(java.util.Map<java.lang.String,java.lang.Object> attributes)
Determines if the attributes given can be used to construct a Directory.
|
int |
compareTo(Directory o) |
boolean |
equals(java.lang.Object o) |
static Directory |
fromAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes)
Constructs a Directory from a Map of attributes.
|
int |
hashCode() |
java.lang.String |
toString() |
Directory |
withGroupName(java.lang.String groupName)
Sets the groupName.
|
Directory |
withLastModifiedTime(java.nio.file.attribute.FileTime lastModifiedTime)
Sets the lastModifiedTime.
|
Directory |
withMode(java.lang.Integer mode)
Sets the mode.
|
Directory |
withName(java.lang.String name)
Sets the name.
|
Directory |
withUserName(java.lang.String userName)
Sets the userName.
|
public static final java.util.Set<java.lang.String> REQUIRED_ATTRIBUTES
public static final java.util.Set<java.lang.String> VALID_ATTRIBUTES
public java.lang.String groupName
public java.nio.file.attribute.FileTime lastModifiedTime
public java.lang.Integer mode
public java.lang.String name
public java.lang.String userName
public Directory(java.lang.String name)
public Directory(java.lang.String name, java.lang.Integer mode, java.lang.String userName, java.lang.String groupName, java.nio.file.attribute.FileTime lastModifiedTime)
public static java.lang.String attributesValid(java.util.Map<java.lang.String,java.lang.Object> attributes)
attributes
- The attributes.public static Directory fromAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes)
attributes
- The attributes.public int compareTo(Directory o)
compareTo
in interface java.lang.Comparable<Directory>
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public Directory withGroupName(java.lang.String groupName)
groupName
- The groupNamepublic Directory withLastModifiedTime(java.nio.file.attribute.FileTime lastModifiedTime)
lastModifiedTime
- The lastModifiedTimepublic Directory withMode(java.lang.Integer mode)
mode
- The modepublic Directory withName(java.lang.String name)
name
- The name.public Directory withUserName(java.lang.String userName)
userName
- The userName