public int compareTo()

in cloudwatch-lambda/src/main/java/com/amazonwebservices/blogs/containers/kubernetes/model/ScalingPolicy.java [78:92]


	public int compareTo(ScalingPolicy that) {
		if (this.equals(that))
			return 0;

		if (Objects.equals(this.type.ordinal(), that.type.ordinal())) {
			if (this.value >= that.value)
				return 1;
			else
				return -1;
		}
		else if (this.type.ordinal() >= that.type.ordinal())
			return 1;
		else
			return -1;
	}