public class ObjectInfo extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<ObjectInfo>
Modifier and Type | Method and Description |
---|---|
int |
compareTo(ObjectInfo other)
Two
ObjectInfo objects are compared to each other by their prefix flag, bucket,
path and version, in this order. |
boolean |
equals(java.lang.Object o)
Two
ObjectInfo objects are equal if their names are equal. |
java.util.Map<java.lang.String,java.lang.String> |
getCustomMetadata()
Returns objects custom metadata.
|
java.lang.String |
getKey()
Returns the key to the object relative to the bucket.
|
SystemMetadata |
getSystemMetadata()
Returns objects system metadata e.g.
|
int |
hashCode()
The hash code value of
ObjectInfo is the hash code value of its name. |
boolean |
isPrefix()
Returns if this is a prefix instead of an object.
|
java.lang.String |
toString() |
public java.lang.String getKey()
public boolean isPrefix()
This is useful in non-recursive object listings.
true
if this represents a prefix, or false
if this
represents an objectpublic SystemMetadata getSystemMetadata()
public java.util.Map<java.lang.String,java.lang.String> getCustomMetadata()
public boolean equals(java.lang.Object o)
ObjectInfo
objects are equal if their names are equal.equals
in class java.lang.Object
true
if this object is the same as the specified object;
false
otherwise.public int hashCode()
ObjectInfo
is the hash code value of its name.hashCode
in class java.lang.Object
public int compareTo(ObjectInfo other)
ObjectInfo
objects are compared to each other by their prefix flag, bucket,
path and version, in this order.compareTo
in interface java.lang.Comparable<ObjectInfo>
public java.lang.String toString()
toString
in class java.lang.Object