Class ResourceBundleData
- java.lang.Object
-
- org.linuxforhealth.fhir.bucket.api.ResourceBundleData
-
public class ResourceBundleData extends java.lang.ObjectA record from RESOURCE_BUNDLES
-
-
Constructor Summary
Constructors Constructor Description ResourceBundleData(long resourceBundleId, long objectSize, FileType ft, java.lang.String eTag, java.util.Date lastModified, java.util.Date scanTstamp, int version)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgeteTag()FileTypegetFileType()Get the type of file this object representsjava.util.DategetLastModified()longgetObjectSize()longgetResourceBundleId()java.util.DategetScanTstamp()intgetVersion()booleanmatches(long objectSize, java.lang.String eTag, java.util.Date lastModified)Does this record match exactly the 3 given values
-
-
-
Constructor Detail
-
ResourceBundleData
public ResourceBundleData(long resourceBundleId, long objectSize, FileType ft, java.lang.String eTag, java.util.Date lastModified, java.util.Date scanTstamp, int version)- Parameters:
resourceBundleId-bucketName-bucketPath-objectName-objectSize-
-
-
Method Detail
-
getObjectSize
public long getObjectSize()
- Returns:
- the objectSize in bytes
-
getFileType
public FileType getFileType()
Get the type of file this object represents- Returns:
-
getResourceBundleId
public long getResourceBundleId()
- Returns:
- the resourceBundleId
-
geteTag
public java.lang.String geteTag()
- Returns:
- the eTag
-
getLastModified
public java.util.Date getLastModified()
- Returns:
- the lastModified
-
matches
public boolean matches(long objectSize, java.lang.String eTag, java.util.Date lastModified)Does this record match exactly the 3 given values- Parameters:
objectSize-eTag-lastModified-- Returns:
-
getScanTstamp
public java.util.Date getScanTstamp()
- Returns:
- the scanTstamp
-
getVersion
public int getVersion()
- Returns:
- the version
-
-