+ private static final Version VERSION = new Version(0, 6, 2);
+
+ /** The components of the version information. */
+ private final int[] components;
+
+ /**
+ * Creates a new version container with the given components.
+ *
+ * @param components
+ * The version components
+ */
+ public Version(int... components) {
+ this.components = new int[components.length];
+ System.arraycopy(components, 0, this.components, 0, components.length);
+ }
+
+ /**
+ * Returns the number of version components.
+ *
+ * @return The number of version components
+ */
+ public int size() {
+ return components.length;
+ }
+
+ /**
+ * Returns the version component with the given index.
+ *
+ * @param index
+ * The index of the version component
+ * @return The version component
+ */
+ public int getComponent(int index) {
+ return components[index];
+ }