org.jclouds.openstack.swift.v1.domain
Class ContainerMetadata

java.lang.Object
  extended by 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

Nested Class Summary
static class ContainerMetadata.Builder
           
 
Field Summary
protected  int bytes
           
protected  int count
           
protected  String name
           
 
Constructor Summary
protected ContainerMetadata(String name, int count, int bytes)
           
 
Method Summary
static ContainerMetadata.Builder builder()
           
 int compareTo(ContainerMetadata that)
           
 boolean equals(Object object)
           
 int getBytes()
           
 int getCount()
           
 String getName()
           
 int hashCode()
           
protected  com.google.common.base.Objects.ToStringHelper string()
           
 ContainerMetadata.Builder toBuilder()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

name

protected String name

count

protected int count

bytes

protected int bytes
Constructor Detail

ContainerMetadata

@ConstructorProperties(value={"name","count","bytes"})
protected ContainerMetadata(String name,
                                                       int count,
                                                       int bytes)
Method Detail

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.