/**
 * 
 */
package com.kancolle.server.model.po.common;

import java.io.Serializable;

/**
 * @author J.K.SAGE
 * @Date 2015年5月30日
 *
 */
public class MaxMinValue implements Serializable {

    private static final long serialVersionUID = 4788796975717664083L;

    private int minValue;

    private int MaxValue;

    public MaxMinValue() {
        super();
    }

    public MaxMinValue(int minValue, int maxValue) {
        super();
        this.minValue = minValue;
        MaxValue = maxValue;
    }

    public int getMinValue() {
        return minValue;
    }

    public void setMinValue(int minValue) {
        this.minValue = minValue;
    }

    public int getMaxValue() {
        return MaxValue;
    }

    public void setMaxValue(int maxValue) {
        MaxValue = maxValue;
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + MaxValue;
        result = prime * result + minValue;
        return result;
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj)
            return true;
        if (obj == null)
            return false;
        if (getClass() != obj.getClass())
            return false;
        MaxMinValue other = (MaxMinValue) obj;
        if (MaxValue != other.MaxValue)
            return false;
        if (minValue != other.minValue)
            return false;
        return true;
    }

    @Override
    public String toString() {
        return String.format("[%s,%s]", minValue, MaxValue);
    }

    public int[] toArray() {
        return new int[] { getMinValue(), getMaxValue() };
    }

    public int getGrowValue() {
        return getMaxValue() - getMinValue();
    }
}

@@ -317,17 +317,17 @@
 ate int 
-M
+m
 axValue;
@@ -492,33 +492,38 @@
 Value;%0D%0A        
-M
+this.m
 axValue = maxVal
@@ -739,17 +739,17 @@
  return 
-M
+m
 axValue;
@@ -812,17 +812,22 @@
         
-M
+this.m
 axValue 
@@ -982,17 +982,17 @@
 esult + 
-M
+m
 axValue;
@@ -1362,17 +1362,17 @@
     if (
-M
+m
 axValue 
@@ -1380,17 +1380,17 @@
 = other.
-M
+m
 axValue)
@@ -1614,17 +1614,17 @@
 nValue, 
-M
+m
 axValue)

update MaxMinValue