@Override public int compareTo(Property<?, ?> other) { if (other == null) { return 1; } return this.getValue().toString().compareTo(Coerce.toString(other.getValue())); } }
@Override public int compareTo(Property<?, ?> other) { return this.getValue().compareTo(other == null || Coerce.toBoolean(other.getValue())); }
@Override public int compareTo(Property<?, ?> other) { return this.getValue().compareTo(other == null ? 1 : Coerce.toInteger(other.getValue())); }
@Override public int compareTo(Property<?, ?> other) { if (other == null) { return 1; } return this.getValue().compareTo(Coerce.toString(other.getValue())); }
@Override public int compareTo(Property<?, ?> other) { return this.getValue().compareTo(other == null ? 1 : Coerce.toInteger(other.getValue())); }
@Override public int compareTo(Property<?, ?> other) { return this.getValue().compareTo(other == null ? 1 : Coerce.toDouble(other.getValue())); }
@Override public int compareTo(Property<?, ?> o) { return this.getValue().getId().compareTo(o == null ? "" : Coerce.toString(o.getValue())); } }
@Override public int compareTo(Property<?, ?> other) { if (other == null) { return 1; } return this.getValue().toString().compareTo(Coerce.toString(other.getValue())); }
@Override public int compareTo(Property<?, ?> other) { if (other == null) { return 1; } if (other instanceof GuiIdProperty) { return this.getValue().getId().compareTo(((GuiId) other.getValue()).getId()); } return 1; } }
@Override public int compareTo(@Nullable Property<?, ?> o) { HandPreference other = Coerce.toPseudoEnum(o == null ? null : o.getValue(), HandPreference.class, HandPreferences.class, HandPreferences.RIGHT); return this.getValue().getId().compareTo(o == null ? "" : other.getId()); } }
@Override public int compareTo(Property<?, ?> other) { if (other instanceof IntProperty || (other instanceof MappedIntProperty && other.getKey().equals(this.getKey()))) { return this.getValue().compareTo(Coerce.toInteger(other.getValue())); } return 1; }
@Override public int compareTo(Property<?, ?> other) { if (other == null) { return 1; } return this.getValue().compareTo(Coerce.toVector2i(other.getValue())); }
@Override public int compareTo(Property<?, ?> other) { if (other == null) { return 1; } return this.getValue().compareTo(Coerce.toEnum(other.getValue(), Direction.class, Direction.NONE)); }
@Override public int compareTo(Property<?, ?> other) { if (other == null) { return 1; } return this.getValue().compareTo(Coerce.toVector2i(other.getValue())); }
@Override public int compareTo(Property<?, ?> other) { if (other == null) { return 1; } EquipmentType otherValue = Coerce.<EquipmentType>toPseudoEnum(other.getValue(), EquipmentType.class, EquipmentTypes.class, EquipmentTypes.WORN); return this.getValue().getName().compareTo(otherValue.getName()); }
@Override public int compareTo(Property<?, ?> o) { return this.getValue().compareTo(o == null ? Matter.SOLID : Coerce.toEnum(o.getValue(), Matter.class)); }
@Override public int compareTo(Property<?, ?> other) { if (other == null) { return 1; } return this.getValue().toString().compareTo(Coerce.toString(other.getValue())); } }
@Override public int compareTo(Property<?, ?> other) { if (other instanceof IntProperty || (other instanceof MappedIntProperty && other.getKey().equals(this.getKey()))) { return this.getValue().compareTo(Coerce.toInteger(other.getValue())); } return 1; }
@Override public int compareTo(@Nullable Property<?, ?> o) { HandPreference other = Coerce.toPseudoEnum(o == null ? null : o.getValue(), HandPreference.class, HandPreferences.class, HandPreferences.RIGHT); return this.getValue().getId().compareTo(o == null ? "" : other.getId()); } }
@Override public int compareTo(Property<?, ?> other) { if (other == null) { return 1; } return this.getValue().compareTo(Coerce.toEnum(other.getValue(), Direction.class, Direction.NONE)); }