class SplitIndex {

    @Override
    public boolean equals(Object obj) {
        if (this == obj)
            return true;
        if (obj == null)
            return false;
        if (getClass() != obj.getClass())
            return false;
        SplitIndex other = (SplitIndex) obj;
        if (index != other.index)
            return false;
        if (last != other.last)
            return false;
        return true;
    }

    private  SplitIndex(int index, boolean last);

}