Class MaterialProductGroup
java.lang.Object
com.kazurayam.materialstore.base.reduce.MaterialProductGroup
- All Implemented Interfaces:
Identifiable
,Jsonifiable
,TemplateReady
,TemplateReadySortable
,Iterable<MaterialProduct>
public final class MaterialProductGroup
extends Object
implements Iterable<MaterialProduct>, TemplateReadySortable, Identifiable
A group of MaterialProduct objects.
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
ConstructorDescriptionMaterialProductGroup
(MaterialProductGroup source, List<MaterialProduct> newMaterialProductList) -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(MaterialProduct mProduct) static MaterialProductGroup.Builder
builder
(MaterialList left, MaterialList right) int
countExceeding
(Double threshold) int
countWarnings
(Double threshold) get
(int index) long
int
getID()
int
boolean
iterator()
void
void
setIdentifyMetadataValues
(IdentifyMetadataValues identifyMetadataValues) void
setIgnoreMetadataKeys
(IgnoreMetadataKeys ignoreMetadataKeys) void
setMaterialListLeft
(MaterialList materialList) void
setMaterialListRight
(MaterialList materialList) void
setReadyToReport
(boolean readyToReport) void
setThreshold
(Double threshold) int
size()
toJson()
toJson
(boolean prettyPrint) toString()
toTemplateModel
(SortKeys sortKeys) toTemplateModelAsJson
(SortKeys sortKeys, boolean prettyPrint) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
Methods inherited from interface com.kazurayam.materialstore.core.TemplateReady
toTemplateModel, toTemplateModelAsJson, toTemplateModelAsJson
-
Field Details
-
NULL_OBJECT
-
-
Constructor Details
-
MaterialProductGroup
-
MaterialProductGroup
public MaterialProductGroup(MaterialProductGroup source, List<MaterialProduct> newMaterialProductList)
-
-
Method Details
-
add
-
countWarnings
-
countExceeding
-
get
-
getID
- Specified by:
getID
in interfaceIdentifiable
-
getShortID
- Specified by:
getShortID
in interfaceIdentifiable
-
getJobTimestampOfReduceResult
-
getIdentifyMetadataValues
-
getJobTimestampLeft
-
getJobTimestampRight
-
getJobTimestampPrevious
-
getJobTimestampFollowing
-
getJobName
-
getIgnoreMetadataKeys
-
getMaterialListLeft
-
getMaterialListRight
-
getMaterialListPrevious
-
getMaterialListFollowing
-
getSortKeys
-
getThreshold
-
getCountWarning
public int getCountWarning() -
getNumberOfBachelors
public int getNumberOfBachelors() -
getCountTotal
public long getCountTotal() -
getLabelLeft
-
getLabelRight
-
isReadyToReport
public boolean isReadyToReport() -
iterator
- Specified by:
iterator
in interfaceIterable<MaterialProduct>
-
setIdentifyMetadataValues
-
setIgnoreMetadataKeys
-
setMaterialListLeft
-
setMaterialListRight
-
setThreshold
-
setReadyToReport
public void setReadyToReport(boolean readyToReport) -
size
public int size() -
order
-
getQueryOnMetadataList
-
toString
-
toJson
- Specified by:
toJson
in interfaceJsonifiable
-
toJson
- Specified by:
toJson
in interfaceJsonifiable
-
toSummary
-
toTemplateModel
- Specified by:
toTemplateModel
in interfaceTemplateReadySortable
-
toTemplateModelAsJson
- Specified by:
toTemplateModelAsJson
in interfaceTemplateReadySortable
-
builder
-