Class MManifest
java.lang.Object
com.io7m.montarre.api.MManifest
- All Implemented Interfaces:
MManifestType, MPackageElementType
A package manifest.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic MManifest.Builderbuilder()Creates a builder forMManifest.static MManifestcopyOf(MManifestType instance) Creates an immutable copy of aMManifestTypevalue.booleanThis instance is equal to all instances ofMManifestthat have equal attribute values.inthashCode()Computes a hash code from attributes:items,itemsMap.items()itemsMap()toString()Prints the immutable valueMManifestwith attribute values.final MManifestwithItems(MManifestItemType... elements) Copy the current immutable object with elements that replace the content ofitems.final MManifestwithItems(Iterable<? extends MManifestItemType> elements) Copy the current immutable object with elements that replace the content ofitems.
-
Method Details
-
items
- Specified by:
itemsin interfaceMManifestType- Returns:
- The manifest items
-
itemsMap
- Specified by:
itemsMapin interfaceMManifestType- Returns:
- The manifest items as a map (by file name)
-
withItems
Copy the current immutable object with elements that replace the content ofitems.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withItems
Copy the current immutable object with elements that replace the content ofitems. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of items elements to set- Returns:
- A modified copy or
thisif not changed
-
equals
-
hashCode
-
toString
-
copyOf
Creates an immutable copy of aMManifestTypevalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable MManifest instance
-
builder
-