diff --git a/src/main/java/org/spongepowered/plugin/meta/version/ComparableVersion.java b/src/main/java/org/spongepowered/plugin/meta/version/ComparableVersion.java index 3ce9af5..06594b2 100644 --- a/src/main/java/org/spongepowered/plugin/meta/version/ComparableVersion.java +++ b/src/main/java/org/spongepowered/plugin/meta/version/ComparableVersion.java @@ -96,11 +96,7 @@ public class ComparableVersion private ListItem items; - public ListItem getItems() { - return this.items; - } - - public interface Item + private interface Item { int INTEGER_ITEM = 0; int STRING_ITEM = 1; @@ -116,7 +112,7 @@ public interface Item /** * Represents a numeric item in the version item list. */ - public static class IntegerItem + private static class IntegerItem implements Item { private static final BigInteger BIG_INTEGER_ZERO = new BigInteger( "0" ); @@ -135,10 +131,6 @@ public IntegerItem( String str ) this.value = new BigInteger( str ); } - public BigInteger getValue() { - return this.value; - } - public int getType() { return INTEGER_ITEM; @@ -181,7 +173,7 @@ public String toString() /** * Represents a string in the version item list, usually a qualifier. */ - public static class StringItem + private static class StringItem implements Item { private static final String[] QUALIFIERS = { "alpha", "beta", "milestone", "rc", "snapshot", "", "sp" }; @@ -227,10 +219,6 @@ public StringItem( String value, boolean followedByDigit ) this.value = ALIASES.getProperty( value , value ); } - public String getValue() { - return this.value; - } - public int getType() { return STRING_ITEM; @@ -294,7 +282,7 @@ public String toString() * Represents a version list item. This class is used both for the global item list and for sub-lists (which start * with '-(number)' in the version specification). */ - public static class ListItem + private static class ListItem extends ArrayList implements Item {