public class ProductImageCrc
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
ProductImageCrc.ImageCrc
Each part of the product_image_crc column holds these attributes separated by ":"
|
Constructor and Description |
---|
ProductImageCrc()
Constructor
|
ProductImageCrc(java.lang.String encodedValue)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addItem(java.lang.String imageNum,
java.lang.String crc,
java.lang.String fileSize)
Add an ImageCrc item.
|
java.util.List<java.lang.Integer> |
getImageNumbers() |
java.util.HashMap<java.lang.String,ProductImageCrc.ImageCrc> |
getMap() |
java.lang.String |
getSizeLargest()
Get the size of the largest image in KB
|
java.lang.String |
serialize() |
java.lang.String |
serializeItem(java.lang.String imageNum,
java.lang.String crc,
java.lang.String size)
Serialise one ImageCrc item
|
void |
setImageNumbers(java.util.List<java.lang.Integer> imageNumbers) |
void |
setMap(java.util.HashMap<java.lang.String,ProductImageCrc.ImageCrc> map) |
java.lang.String |
toString() |
java.lang.String |
toStringBrief() |
public ProductImageCrc()
public ProductImageCrc(java.lang.String encodedValue)
encodedValue
- the value from the product_image_crc column in the databasepublic java.lang.String serialize()
public java.lang.String serializeItem(java.lang.String imageNum, java.lang.String crc, java.lang.String size)
imageNum
- image numbercrc
- the CRCsize
- size of the imagepublic void addItem(java.lang.String imageNum, java.lang.String crc, java.lang.String fileSize)
imageNum
- image numbercrc
- the CRCfileSize
- file sizepublic java.lang.String getSizeLargest()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toStringBrief()
public java.util.HashMap<java.lang.String,ProductImageCrc.ImageCrc> getMap()
public void setMap(java.util.HashMap<java.lang.String,ProductImageCrc.ImageCrc> map)
map
- the map to setpublic java.util.List<java.lang.Integer> getImageNumbers()
public void setImageNumbers(java.util.List<java.lang.Integer> imageNumbers)
imageNumbers
- the imageNumbers to setCopyright © 2018 DS Data Systems UK Ltd.