package io.kubernetes.client.custom;

public class BaseExponent {

    private final int base;

    private final int exponent;

    private final Quantity.Format format;
    public BaseExponent(int base, int exponent, Quantity.Format format) {
        this.base = base;
        this.exponent = exponent;
        this.format = format;
    }

    public int getBase() {
        return base;
    }

    public int getExponent() {
        return exponent;
    }

    public Quantity.Format getFormat() {
        return format;
    }

    @Override
    public String toString() {
        return "BaseExponent{" +
                "base=" + base +
                ", exponent=" + exponent +
                ", format=" + format +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        BaseExponent that = (BaseExponent) o;

        if (base != that.base) return false;
        if (exponent != that.exponent) return false;
        return format == that.format;
    }

    @Override
    public int hashCode() {
        int result = base;
        result = 31 * result + exponent;
        result = 31 * result + (format != null ? format.hashCode() : 0);
        return result;
    }
}

@@ -960,18 +960,21 @@
     
-if (
+return 
 base 
-!
+=
 = th
@@ -984,36 +984,12 @@
 base
-) return false;%0A        if (
+ && 
 expo
@@ -993,17 +993,17 @@
 xponent 
-!
+=
 = that.e
@@ -1013,38 +1013,11 @@
 nent
-) return false;%0A        return
+ &&
  for

Simplify BaseExponent#equals