public enum Style extends Enum<Style>
Feature summary:
Consideration | Immutable | ImmutableWithCopyMutators | Mutable | RichlyMutable | ExtendedRichlyMutable | Unsafe |
---|---|---|---|---|---|---|
final field | X | X | ||||
final collection field | X | X | X | X | X | |
final class | X | X | ||||
defensive copy | X | X | X | X | X | |
unmodifiable at creation | X | X | ||||
unmodifiable at access | X | X | X | |||
get method | X | X | X | X | X | X |
set method | X | X | X | X | ||
set collection method | X | |||||
with copy mutator | X | |||||
has method | X | |||||
add method | X | X | X | |||
add... method | X | |||||
addAll method | X | X | ||||
remove method | X | X | X | |||
remove... method | X | |||||
removeAll method | X | X | ||||
retainAll method | X | X | ||||
clear method | X | X | ||||
final methods | X | X | X | |||
default constructor | ||||||
required argument only constructor | X | X | X | X | ||
full argument constructor | X | X | X | X | X | X |
override toString and hashCode | X | X | X | X |
Enum Constant and Description |
---|
Exception
Exception source code generation style.
|
ExtendedRichlyMutable
Richly mutable source code generation style with a few additional
methods per attribute and association.
|
Immutable
Immutable source code generation style.
|
ImmutableWithCopyMutators
Immutable with copy mutators source code generation style.
|
Mutable
Mutable source code generation style.
|
MutableBean
Mutable bean source code generation style, with property change support.
|
RichlyMutable
Richly mutable source code generation style.
|
RuntimeException
RuntimeException source code generation style.
|
Unsafe
Unsafe source code generation style.
|
Modifier and Type | Method and Description |
---|---|
static Style |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Style[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Style Immutable
public static final Style ImmutableWithCopyMutators
public static final Style Mutable
public static final Style MutableBean
public static final Style RichlyMutable
public static final Style ExtendedRichlyMutable
TODO: come up with a more appropriate name for this value
public static final Style Unsafe
public static final Style Exception
public static final Style RuntimeException
public static Style[] values()
for (Style c : Style.values()) System.out.println(c);
public static Style valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullCopyright (c) 2004-2013 held jointly by the individual authors. Licensed under the GNU Lesser General Public License (LGPL).