Package com.io7m.waxmill.xml.config.v1
Class WXM1ZFSFilesystems
java.lang.Object
com.io7m.waxmill.xml.config.v1.WXM1ZFSFilesystems
- All Implemented Interfaces:
WXM1ZFSFilesystemsType
public final class WXM1ZFSFilesystems extends java.lang.Object implements WXM1ZFSFilesystemsType
Immutable implementation of
WXM1ZFSFilesystemsType.
Use the builder to create immutable instances:
WXM1ZFSFilesystems.builder().
Use the static factory method to create immutable instances:
WXM1ZFSFilesystems.of().
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWXM1ZFSFilesystems.BuilderBuilds instances of typeWXM1ZFSFilesystems. -
Method Summary
Modifier and Type Method Description static WXM1ZFSFilesystems.Builderbuilder()Creates a builder forWXM1ZFSFilesystems.static WXM1ZFSFilesystemscopyOf(WXM1ZFSFilesystemsType instance)Creates an immutable copy of aWXM1ZFSFilesystemsTypevalue.booleanequals(java.lang.Object another)This instance is equal to all instances ofWXM1ZFSFilesystemsthat have equal attribute values.java.util.List<WXM1ZFSFilesystem>filesystems()inthashCode()Computes a hash code from attributes:filesystems,pathMap.static WXM1ZFSFilesystemsof(java.lang.Iterable<? extends WXM1ZFSFilesystem> filesystems)Construct a new immutableWXM1ZFSFilesystemsinstance.static WXM1ZFSFilesystemsof(java.util.List<WXM1ZFSFilesystem> filesystems)Construct a new immutableWXM1ZFSFilesystemsinstance.java.util.Map<java.lang.String,WXM1ZFSFilesystem>pathMap()java.lang.StringtoString()Prints the immutable valueWXM1ZFSFilesystemswith attribute values.WXM1ZFSFilesystemswithFilesystems(WXM1ZFSFilesystem... elements)Copy the current immutable object with elements that replace the content offilesystems.WXM1ZFSFilesystemswithFilesystems(java.lang.Iterable<? extends WXM1ZFSFilesystem> elements)Copy the current immutable object with elements that replace the content offilesystems.
-
Method Details
-
filesystems
- Specified by:
filesystemsin interfaceWXM1ZFSFilesystemsType- Returns:
- The value of the
filesystemsattribute
-
pathMap
- Specified by:
pathMapin interfaceWXM1ZFSFilesystemsType- Returns:
- The computed-at-construction value of the
pathMapattribute
-
withFilesystems
Copy the current immutable object with elements that replace the content offilesystems.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withFilesystems
public final WXM1ZFSFilesystems withFilesystems(java.lang.Iterable<? extends WXM1ZFSFilesystem> elements)Copy the current immutable object with elements that replace the content offilesystems. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of filesystems elements to set- Returns:
- A modified copy of
thisobject
-
equals
public boolean equals(java.lang.Object another)This instance is equal to all instances ofWXM1ZFSFilesystemsthat have equal attribute values.- Overrides:
equalsin classjava.lang.Object- Returns:
trueifthisis equal toanotherinstance
-
hashCode
public int hashCode()Computes a hash code from attributes:filesystems,pathMap.- Overrides:
hashCodein classjava.lang.Object- Returns:
- hashCode value
-
toString
public java.lang.String toString()Prints the immutable valueWXM1ZFSFilesystemswith attribute values.- Overrides:
toStringin classjava.lang.Object- Returns:
- A string representation of the value
-
of
Construct a new immutableWXM1ZFSFilesystemsinstance.- Parameters:
filesystems- The value for thefilesystemsattribute- Returns:
- An immutable WXM1ZFSFilesystems instance
-
of
Construct a new immutableWXM1ZFSFilesystemsinstance.- Parameters:
filesystems- The value for thefilesystemsattribute- Returns:
- An immutable WXM1ZFSFilesystems instance
-
copyOf
Creates an immutable copy of aWXM1ZFSFilesystemsTypevalue. 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 WXM1ZFSFilesystems instance
-
builder
Creates a builder forWXM1ZFSFilesystems.WXM1ZFSFilesystems.builder() .addFilesystems|addAllFilesystems(WXM1ZFSFilesystem) //filesystemselements .build();- Returns:
- A new WXM1ZFSFilesystems builder
-