Package com.backblaze.b2.client
Class B2PartSpec
- java.lang.Object
-
- com.backblaze.b2.client.B2PartSpec
-
- All Implemented Interfaces:
java.lang.Comparable<B2PartSpec>
public class B2PartSpec extends java.lang.Object implements java.lang.Comparable<B2PartSpec>
A B2PartSpec represents part of a large file. It has the partNumber and the offset & length of the part in the file.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(B2PartSpec o)
boolean
equals(java.lang.Object o)
long
getLength()
int
getPartNumber()
long
getStart()
int
hashCode()
java.lang.String
toString()
-
-
-
Method Detail
-
getPartNumber
public int getPartNumber()
-
getStart
public long getStart()
-
getLength
public long getLength()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
compareTo
public int compareTo(B2PartSpec o)
- Specified by:
compareTo
in interfacejava.lang.Comparable<B2PartSpec>
-
-