Class Numbering
java.lang.Object
org.episteme.core.util.Numbering
- All Implemented Interfaces:
Serializable, Comparable<Numbering>
- Direct Known Subclasses:
SimpleNumbering
Represents a hierarchical numbering (e.g., "1.0.1", "Article 42.1").
Used for law articles, software versions, and other structured identifiers.
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Numbering
public Numbering(int... values) Creates a new Numbering from an array of integers.- Parameters:
values- components of the numbering (must be non-negative).
-
-
Method Details
-
parse
-
getValues
public int[] getValues() -
toString
-
compareTo
- Specified by:
compareToin interfaceComparable<Numbering>
-
equals
-
hashCode
-
getNext
Returns the next numbering at the current depth (e.g., 1.2 -> 1.3). -
addMinor
Adds a minor version (e.g., 1.2 -> 1.2.0).
-