public class Bucket extends Object implements Serializable
Constructor and Description |
---|
Bucket()
Constructs a bucket without any name specified.
|
Bucket(String name,
Owner owner,
Date creationDate)
Creates a bucket with a name.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Date |
getCreationDate()
Gets the bucket's creation date.
|
String |
getName()
Gets the name of the bucket.
|
Owner |
getOwner()
Gets the bucket's owner.
|
int |
hashCode() |
String |
toString() |
public Bucket()
public Bucket(String name, Owner owner, Date creationDate)
name
- The name for the bucket.owner
- The owner for the bucket.creationDate
- The creationDate for the bucket.Bucket()
public String toString()
toString
in class Object
Object.toString()
public Owner getOwner()
null
if the bucket's owner is unknown.null
if it is unknown.public Date getCreationDate()
null
if the creation date is not known.null
if not known.public String getName()
Copyright © 2010–2019. All rights reserved.