CProjectNameTypepublic final class CProjectName extends Object implements CProjectNameType
| Modifier and Type | Class | Description |
|---|---|---|
static class |
CProjectName.Builder |
Builds instances of type
CProjectName. |
| Modifier and Type | Method | Description |
|---|---|---|
static CProjectName.Builder |
builder() |
Creates a builder for
CProjectName. |
static CProjectName |
copyOf(CProjectNameType instance) |
Creates an immutable copy of a
CProjectNameType value. |
boolean |
equals(Object another) |
This instance is equal to all instances of
CProjectName that have equal attribute values. |
int |
hashCode() |
Computes a hash code from attributes:
value. |
static CProjectName |
of(String value) |
Construct a new immutable
CProjectName instance. |
String |
toString() |
Prints the immutable value
CProjectName with attribute values. |
String |
value() |
|
CProjectName |
withValue(String value) |
Copy the current immutable object by setting a value for the
value attribute. |
checkPreconditionspublic String value()
value in interface CProjectNameTypepublic final CProjectName withValue(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(Object another)
CProjectName that have equal attribute values.public int hashCode()
value.public String toString()
CProjectName with attribute values.public static CProjectName of(String value)
CProjectName instance.value - The value for the value attributepublic static CProjectName copyOf(CProjectNameType instance)
CProjectNameType 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 CProjectName.Builder builder()
CProjectName.Copyright © 2018 <code@io7m.com> http://io7m.com