public class HashCodeAndFileType extends Object
Modifier and Type | Field and Description |
---|---|
static byte |
TYPE_ARCHIVE |
static byte |
TYPE_DIRECTORY |
static byte |
TYPE_FILE |
Modifier | Constructor and Description |
---|---|
protected |
HashCodeAndFileType(byte type,
com.google.common.hash.HashCode hashCode) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object another)
This instance is equal to all instances of
HashCodeAndFileType that have equal
attribute values. |
com.google.common.hash.HashCode |
getHashCode() |
byte |
getType() |
int |
hashCode()
Computes a hash code from attributes:
type , hashCode . |
static HashCodeAndFileType |
ofDirectory(com.google.common.hash.HashCode hashCode) |
static HashCodeAndFileType |
ofFile(com.google.common.hash.HashCode hashCode) |
public static final byte TYPE_DIRECTORY
public static final byte TYPE_FILE
public static final byte TYPE_ARCHIVE
protected HashCodeAndFileType(byte type, com.google.common.hash.HashCode hashCode)
public byte getType()
public com.google.common.hash.HashCode getHashCode()
public boolean equals(@Nullable Object another)
HashCodeAndFileType
that have equal
attribute values.public int hashCode()
type
, hashCode
.public static HashCodeAndFileType ofDirectory(com.google.common.hash.HashCode hashCode)
public static HashCodeAndFileType ofFile(com.google.common.hash.HashCode hashCode)