示例#1
0
文件: Vo.java 项目: zlamalp/perun-wui
 /**
  * Return new instance of VO with basic properties set.
  *
  * @param id ID of VO
  * @param name name of VO
  * @param shortName shortName of VO
  * @return Vo object
  */
 public static final Vo createNew(int id, String name, String shortName) {
   Vo vo = new JSONObject().getJavaScriptObject().cast();
   vo.setId(id);
   vo.setName(name);
   vo.setShortName(shortName);
   vo.setObjectType("Vo");
   return vo;
 }
示例#2
0
文件: Vo.java 项目: zlamalp/perun-wui
 /**
  * Compares to another object
  *
  * @param o Object to compare
  * @return true, if they are the same
  */
 public final boolean equals(Vo o) {
   return o.getId() == this.getId();
 }