public final class Specification extends Object
Constructor and Description |
---|
Specification(String name,
SpecificationVersion version)
Creates new SDK Specification
|
Specification(String name,
SpecificationVersion version,
Profile[] profiles)
Creates new SDK Specification
|
Specification(String name,
SpecificationVersion version,
String displayName,
Profile[] profiles)
Creates new SDK Specification
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
String |
getDisplayName()
Returns the display name of the Java SDK.
|
String |
getName()
Returns the name of the Java specification, e.g.
|
Profile[] |
getProfiles()
Returns profiles supported by the Java platform.
|
SpecificationVersion |
getVersion()
Returns the version of the Java specification e.g 1.4
|
int |
hashCode() |
String |
toString() |
public Specification(@NullAllowed String name, @NullAllowed SpecificationVersion version)
name
- of the specification e.g J2SEversion
- of the specification e.g. 1.4public Specification(@NullAllowed String name, @NullAllowed SpecificationVersion version, @NullAllowed Profile[] profiles)
name
- of the specification e.g J2SEversion
- of the specification e.g. 1.4profiles
- of the Java SDKpublic Specification(@NullAllowed String name, @NullAllowed SpecificationVersion version, @NullAllowed String displayName, @NullAllowed Profile[] profiles)
name
- of the specification e.g J2SEversion
- of the specification e.g. 1.4displayName
- the display name of the Java SDK e.g. "Java SE".profiles
- of the Java SDKpublic final String getName()
j2se
public final SpecificationVersion getVersion()
public final Profile[] getProfiles()
@NonNull public String getDisplayName()
Specification.getName()
is used as a system name
the Specification.getDisplayName()
is used while presenting the
Java SDK to the user.