CModuleNameTypepublic final class CModuleName extends java.lang.Object implements CModuleNameType
| Modifier and Type | Class | Description |
|---|---|---|
static class |
CModuleName.Builder |
Builds instances of type
CModuleName. |
| Modifier and Type | Method | Description |
|---|---|---|
static CModuleName.Builder |
builder() |
Creates a builder for
CModuleName. |
static CModuleName |
copyOf(CModuleNameType instance) |
Creates an immutable copy of a
CModuleNameType value. |
boolean |
equals(java.lang.Object another) |
This instance is equal to all instances of
CModuleName that have equal attribute values. |
int |
hashCode() |
Computes a hash code from attributes:
value. |
static CModuleName |
of(java.lang.String value) |
Construct a new immutable
CModuleName instance. |
java.lang.String |
toString() |
Prints the immutable value
CModuleName with attribute values. |
java.lang.String |
value() |
|
CModuleName |
withValue(java.lang.String value) |
Copy the current immutable object by setting a value for the
value attribute. |
checkPreconditionspublic java.lang.String value()
value in interface CModuleNameTypepublic final CModuleName withValue(java.lang.String value)
value attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for valuethis objectpublic boolean equals(java.lang.Object another)
CModuleName that have equal attribute values.equals in class java.lang.Objecttrue if this is equal to another instancepublic int hashCode()
value.hashCode in class java.lang.Objectpublic java.lang.String toString()
CModuleName with attribute values.toString in class java.lang.Objectpublic static CModuleName of(java.lang.String value)
CModuleName instance.value - The value for the value attributepublic static CModuleName copyOf(CModuleNameType instance)
CModuleNameType value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance - The instance to copypublic static CModuleName.Builder builder()
CModuleName.Copyright © 2017 <code@io7m.com> http://io7m.com