org.jclouds.openstack.swift.domain.internal
Class ObjectInfoImpl

java.lang.Object
  extended by org.jclouds.openstack.swift.domain.internal.ObjectInfoImpl
All Implemented Interfaces:
Comparable<ObjectInfo>, ObjectInfo

public class ObjectInfoImpl
extends Object
implements ObjectInfo

Class ObjectInfoImpl


Nested Class Summary
static class ObjectInfoImpl.Builder<T extends ObjectInfoImpl.Builder<T>>
           
 
Constructor Summary
protected ObjectInfoImpl(String name, String container, URI uri, byte[] hash, Long bytes, String contentType, Date lastModified)
           
 
Method Summary
static ObjectInfoImpl.Builder<?> builder()
           
 int compareTo(ObjectInfo other)
           
 boolean equals(Object obj)
           
 Long getBytes()
          
 String getContainer()
          
 String getContentType()
          
 byte[] getHash()
          
 Date getLastModified()
          
 String getName()
          
 URI getUri()
          
 int hashCode()
           
protected  com.google.common.base.Objects.ToStringHelper string()
           
 ObjectInfoImpl.Builder<?> toBuilder()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ObjectInfoImpl

@ConstructorProperties(value={"name","container","uri","hash","bytes","content_type","last_modified"})
protected ObjectInfoImpl(String name,
                                                    @Nullable
                                                    String container,
                                                    @Nullable
                                                    URI uri,
                                                    @Nullable
                                                    byte[] hash,
                                                    @Nullable
                                                    Long bytes,
                                                    @Nullable
                                                    String contentType,
                                                    @Nullable
                                                    Date lastModified)
Method Detail

builder

public static ObjectInfoImpl.Builder<?> builder()

toBuilder

public ObjectInfoImpl.Builder<?> toBuilder()

getName

public String getName()

Specified by:
getName in interface ObjectInfo

getContainer

@Nullable
public String getContainer()

Specified by:
getContainer in interface ObjectInfo

getUri

@Nullable
public URI getUri()

Specified by:
getUri in interface ObjectInfo

getHash

@Nullable
public byte[] getHash()

Specified by:
getHash in interface ObjectInfo

getBytes

@Nullable
public Long getBytes()

Specified by:
getBytes in interface ObjectInfo

getContentType

@Nullable
public String getContentType()

Specified by:
getContentType in interface ObjectInfo

getLastModified

@Nullable
public Date getLastModified()

Specified by:
getLastModified in interface ObjectInfo

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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

string

protected com.google.common.base.Objects.ToStringHelper string()

toString

public String toString()
Overrides:
toString in class Object

compareTo

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


Copyright © 2009-2013 jclouds. All Rights Reserved.