All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.manywho.sdk.api.draw.content.Command Maven / Gradle / Ivy

The newest version!
package com.manywho.sdk.api.draw.content;

import com.google.common.base.MoreObjects;
import com.google.common.base.Strings;
import com.google.common.collect.Maps;

import java.util.HashMap;
import java.util.Map;

public class Command {
    private String commandType;
    private Map properties = Maps.newHashMap();

    public String getCommandType() {
        return commandType;
    }

    public boolean hasCommandType() {
        return Strings.isNullOrEmpty(commandType) == false;
    }

    public void setCommandType(String commandType) {
        this.commandType = commandType;
    }

    public Map getProperties() {
        return properties;
    }

    public void setProperties(Map properties) {
        this.properties = MoreObjects.firstNonNull(properties, new HashMap());
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy