org.jclouds.openstack.swift.v1.domain
Class ContainerMetadata
java.lang.Object
org.jclouds.openstack.swift.v1.domain.ContainerMetadata
- All Implemented Interfaces:
- Comparable<ContainerMetadata>
public class ContainerMetadata
- extends Object
- implements Comparable<ContainerMetadata>
retrieve a list of existing storage containers ordered by name. The sort order for the name is
based on a binary comparison, a single built-in collating sequence that compares string data
using SQLite's memcmp() function, regardless of text encoding.
- Author:
- Adrian Cole
- See Also:
- api
doc
name
protected String name
count
protected int count
bytes
protected int bytes
ContainerMetadata
@ConstructorProperties(value={"name","count","bytes"})
protected ContainerMetadata(String name,
int count,
int bytes)
builder
public static ContainerMetadata.Builder builder()
toBuilder
public ContainerMetadata.Builder toBuilder()
getName
public String getName()
- Returns:
- the name of the container
getCount
public int getCount()
- Returns:
- the number of objects in the container
getBytes
public int getBytes()
- Returns:
- the total bytes stored in this container
equals
public boolean equals(Object object)
- Overrides:
equals in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
toString
public String toString()
- Overrides:
toString in class Object
string
protected com.google.common.base.Objects.ToStringHelper string()
compareTo
public int compareTo(ContainerMetadata that)
- Specified by:
compareTo in interface Comparable<ContainerMetadata>
Copyright © 2009-2012 jclouds. All Rights Reserved.