public final class PolicyVersion extends Object implements Comparable<PolicyVersion>
<xs:simpleType name="VersionType">
<xs:restriction base="xs:string">
<xs:pattern value="(\d+\.)*\d+"/>
</xs:restriction>
</xs:simpleType>
Modifier | Constructor and Description |
---|---|
|
PolicyVersion(String version)
Creates instance from version in text form
|
protected |
PolicyVersion(String version,
List<Integer> numbers) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(PolicyVersion other) |
boolean |
equals(Object obj) |
List<Integer> |
getNumberSequence()
Get version as sequence of positive integers
|
int |
hashCode() |
String |
toString()
Return the original version string from which this object was instantiated
|
public PolicyVersion(String version) throws IllegalArgumentException
version
- version stringIllegalArgumentException
- if version is null or not valid according to pattern definition in XACML schema: "(\d+\.)*\d+"public int compareTo(PolicyVersion other)
compareTo
in interface Comparable<PolicyVersion>
public String toString()
Copyright © 2012–2020. All rights reserved.