src/main/java/de/dosmike/sponge/megamenus/api/state/StateObject.java
public StateObject copy() {
        StateObject copy = new StateObject();
        copy.state.putAll(state);
        return copy;
    }
/**
     * @return a shallow copy of this StateObject.
     * @see <a href="https://en.wikipedia.org/wiki/Object_copying#Shallow_copy">Wikipedia # Shallow copy</a>
     */
@return a shallow copy of this StateObject.
@see Wikipedia # Shallow copy
@return a shallow copy of this StateObject . @see Wikipedia # Shallow copy
public StateObject copy() {
        StateObject copy = new StateObject();
        copy.state.putAll(state);
        return copy;
    }
public StateObject copy ( ) { StateObject copy = new StateObject ( ) ; copy . state . putAll ( state ) ; return copy ; }
@return a shallow copy of this StateObject.
@return a shallow copy of this StateObject .