@Override public String getKey(L l) throws Exception { return l.getLabel(); } }
@Override public String getKey(L l) throws Exception { return l.getLabel(); } }
@Override public String map(L l) throws Exception { return l.getLabel(); }
@Override public String map(L l) throws Exception { return l.getLabel(); }
@Override public boolean filter(L l) throws Exception { return l.getLabel().equals(label); } }
@Override public boolean filter(L l) throws Exception { return l.getLabel().equals(label); } }
/** * Writes meta data (e.g., label) to a json object and returns it. * * @param entity labeled entity * @return json object with meta data containing the label * @throws JSONException */ private JSONObject writeMeta(EPGMLabeled entity) throws JSONException { JSONObject meta = new JSONObject(); meta.put(JSONConstants.LABEL, entity.getLabel()); return meta; }
/** * Writes meta data (e.g., label) to a json object and returns it. * * @param entity labeled entity * @return json object with meta data containing the label * @throws JSONException */ private JSONObject writeMeta(EPGMLabeled entity) throws JSONException { JSONObject meta = new JSONObject(); meta.put(JSONConstants.LABEL, entity.getLabel()); return meta; }