public static boolean equals(Object[] nr1, Object[] nr2) { if (nr1 == null && nr2 == null) return true; if (nr1 == null || nr2 == null) return false; if (nr1.length != nr2.length) return false; for (int i = 0; i < nr1.length; i++) if (!MSystem.equals(nr1[i], nr2[i])) return false; return true; }
@Override public boolean equals(Integer p1, Integer p2) { return MSystem.equals(p1, p2); }
@Override public boolean equals(Object in) { if (in instanceof Item) return MSystem.equals( ((Item)in).getKey(), key ); return key.equals(in); }
@Override public void setDataSourceName(String dataSourceName) { if (MSystem.equals(this.dataSourceName, dataSourceName)) return; this.dataSourceName = dataSourceName; try { updateManager(false); } catch (Exception e) { } }
void update() { T newValue = loadValue(); if (MSystem.equals(value, newValue)) return; onPreUpdate(newValue); this.value = newValue; this.updated = System.currentTimeMillis(); onPostUpdate(value); }
@Override public void headerClick(HeaderClickEvent event) { if (ExpandingTable.super.isSortDisabled()) return; String name = String.valueOf( event.getPropertyId() ); if (name.equals(sortedColumn)) sortedAscending = ! sortedAscending; else sortedAscending = true; sortedColumn = name; boolean changed = false; // update table now if ( !MSystem.equals(ExpandingTable.super.getSortContainerPropertyId(),sortedColumn)) { ExpandingTable.super.setSortContainerPropertyId(sortedColumn); changed = true; } if (ExpandingTable.super.isSortAscending() != sortedAscending) { ExpandingTable.super.setSortAscending(sortedAscending); changed = true; } if (changed) sortEventHandler.fire(); } });
public void setValue(String v) { T newValue = loadValue(v); if (newValue == null) return; if (MSystem.equals(value, newValue)) return; onPreUpdate(newValue); this.value = newValue; onPostUpdate(value); }
public JmsDestination setConnection(JmsConnection con) { if (MSystem.equals(this.con, con)) return this; this.con = con; try { reset(); open(); } catch (Exception e) { log().t(e); } return this; }
@Override public boolean objectChanged(Object obj) throws MException { Object id = datastore.getKey(obj).getId(); Object clone = datastore.get(obj.getClass(), id); try { PojoModel model = getModelFor(obj.getClass()); for ( PojoAttribute<?> f : model) { Object v1 = f.get(obj); Object v2 = f.get(clone); if (!MSystem.equals(v1, v2)) return true; } } catch (IOException e) { throw new MException(e); } return false; }
if (item.getEvent() == event && item.getNode().equals(nodeId) && MSystem.equals(item.info, info) ) {