public class Entry extends Object implements Comparable<Entry>
Constructor and Description |
---|
Entry(String key)
Constructs a new Entry.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Entry other)
Compares by key name.
|
boolean |
equals(Object other)
Returns true if other is an entry with the same key.
|
String |
getETag()
Returns the object's ETag, which can be used for conditional GETs.
|
String |
getKey()
Returns the name of the object
|
Date |
getLastModified()
The date at which the object was last modified.
|
Owner |
getOwner()
Returns the object's owner
|
long |
getSize()
Returns the size of the object in bytes.
|
String |
getStorageClass()
The object's storage class
|
int |
hashCode()
Calculates hash using the key.
|
void |
setLastModified(Date lastModified)
Sets lastModified.
|
void |
setOwner(Owner owner)
Sets owner.
|
void |
setSize(long size)
Sets size.
|
String |
toString()
Returns the key
|
public Entry(String key)
public void setLastModified(Date lastModified)
public Date getLastModified()
public String getKey()
public String getETag()
public void setOwner(Owner owner)
public Owner getOwner()
public void setSize(long size)
public long getSize()
public String getStorageClass()
public boolean equals(Object other)
public int compareTo(Entry other)
compareTo
in interface Comparable<Entry>
Copyright © 2013. All Rights Reserved.