Skip to content

Instantly share code, notes, and snippets.

@ailabs-software
Created March 13, 2017 19:16
Show Gist options
  • Save ailabs-software/a7e9869adafff9cb52cbfbf629feae11 to your computer and use it in GitHub Desktop.
Save ailabs-software/a7e9869adafff9cb52cbfbf629feae11 to your computer and use it in GitHub Desktop.
Line 20: Native JsType method 'boolean PipelineItemLayoutModel.equals(Object)' should be native or abstract.
@JsType(isNative=true, namespace=GLOBAL, name="Object")
public class PipelineItemLayoutModel
{
public String templateName;
public int alignment; // 0 is left, 1 is right
public int openType;
public String button;
public String buttonTheme;
public String buttonColor;
public List<String> activeFields;
/** Used to detect change */
public final boolean equals(Object obj)
{
if (obj instanceof PipelineItemLayoutModel) {
PipelineItemLayoutModel layoutModel = (PipelineItemLayoutModel) obj;
// Compare all fields.
return templateName.equals(layoutModel.templateName) &&
alignment == layoutModel.alignment &&
openType == layoutModel.openType &&
button.equals(layoutModel.button) &&
buttonTheme.equals(layoutModel.buttonTheme) &&
buttonColor.equals(layoutModel.buttonColor) &&
activeFields.equals(layoutModel.activeFields);
}
else {
return false;
}
}
}
//
[INFO] Errors in client/model/PipelineItemLayoutModel.java
[INFO] [ERROR] Line 20: Native JsType method 'boolean PipelineItemLayoutModel.equals(Object)' should be native or abstract.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment