Fix style

This commit is contained in:
Anthony Corbacho 2016-10-24 11:39:02 +09:00
parent dc7fc50a59
commit 517ebc88f5

View file

@ -16,34 +16,34 @@
*/
package org.apache.zeppelin.rest.message;
import org.apache.commons.lang.StringUtils;
import java.util.Collections;
import java.util.Map;
import org.apache.commons.lang.StringUtils;
/**
* Represent payload of a notebook repo settings.
*/
public class NotebookRepoSettingsRequest {
public static final NotebookRepoSettingsRequest EMPTY = new NotebookRepoSettingsRequest();
public static final NotebookRepoSettingsRequest EMPTY = new NotebookRepoSettingsRequest();
public String name;
public Map<String, String> settings;
public String name;
public Map<String, String> settings;
public NotebookRepoSettingsRequest() {
name = StringUtils.EMPTY;
settings = Collections.emptyMap();
}
public boolean isEmpty() {
return this == EMPTY;
}
public static boolean isEmpty(NotebookRepoSettingsRequest repoSetting) {
if (repoSetting == null) {
return true;
}
return repoSetting.isEmpty();
public NotebookRepoSettingsRequest() {
name = StringUtils.EMPTY;
settings = Collections.emptyMap();
}
public boolean isEmpty() {
return this == EMPTY;
}
public static boolean isEmpty(NotebookRepoSettingsRequest repoSetting) {
if (repoSetting == null) {
return true;
}
return repoSetting.isEmpty();
}
}