public enum MaximumCardinality extends java.lang.Enum<MaximumCardinality>
Enum Constant and Description |
---|
MANY
Defines a plural reference.
|
ONE
Defines a unary reference.
|
Modifier and Type | Method and Description |
---|---|
static MaximumCardinality |
fromInt(int value)
Resolve an integer to an upper cardinality boundary.
|
int |
toInt()
Convert this upper cardinality boundary to an integer
|
static MaximumCardinality |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MaximumCardinality[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MaximumCardinality ONE
public static final MaximumCardinality MANY
public static MaximumCardinality[] values()
for (MaximumCardinality c : MaximumCardinality.values()) System.out.println(c);
public static MaximumCardinality valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int toInt()
public static MaximumCardinality fromInt(int value)
value
- The integer representation of an upper cardinality boundaryvalue
Copyright © OSGi Alliance (2000, 2018). All Rights Reserved. Licensed under the OSGi Specification License, Version 2.0