org.jclouds.glesys.domain
Class Archive

java.lang.Object
  extended by org.jclouds.glesys.domain.Archive
All Implemented Interfaces:
Comparable<Archive>
Direct Known Subclasses:
ArchiveDetails

public class Archive
extends Object
implements Comparable<Archive>

Information about an archive

Author:
Adam Lowe
See Also:

Nested Class Summary
static class Archive.Builder
           
 
Constructor Summary
Archive(String username, String totalSize, String freeSize, boolean locked)
           
 
Method Summary
static Archive.Builder builder()
           
 int compareTo(Archive other)
           
 boolean equals(Object obj)
           
 String getFreeSize()
           
 String getTotalSize()
           
 String getUsername()
           
 int hashCode()
           
 boolean isLocked()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Archive

public Archive(String username,
               String totalSize,
               String freeSize,
               boolean locked)
Method Detail

builder

public static Archive.Builder builder()

getUsername

public String getUsername()
Returns:
the name (username) of the archive

getTotalSize

public String getTotalSize()
Returns:
the total size of the archive, ex. "10 GB"

getFreeSize

public String getFreeSize()
Returns:
the free space left of the archive

isLocked

public boolean isLocked()
Returns:
true if the archive is locked

hashCode

public int hashCode()
Overrides:
hashCode in class Object

compareTo

public int compareTo(Archive other)
Specified by:
compareTo in interface Comparable<Archive>

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2012 jclouds. All Rights Reserved.