List of usage examples for com.mongodb MongoClientURI equals
@Override public boolean equals(final Object o)
From source file:org.netbeans.modules.mongodb.api.connections.ConnectionInfo.java
License:Open Source License
public void setMongoURI(MongoClientURI uri) { Parameters.notNull(PROPERTY_URI, uri); final MongoClientURI old = getMongoURI(); if (!old.equals(uri)) { this.uri = uri.getURI(); supp.firePropertyChange(PROPERTY_URI, old, uri); }//from w ww . j ava 2 s.c o m }
From source file:org.netbeans.modules.mongodb.ConnectionInfo.java
License:Open Source License
public void setMongoURI(MongoClientURI uri) { Parameters.notNull(PREFS_KEY_URI, uri); final MongoClientURI old = getMongoURI(); if (!old.equals(uri)) { node.put(PREFS_KEY_URI, uri.getURI()); supp.firePropertyChange(PREFS_KEY_URI, old, uri); }/*from www .jav a2 s . c o m*/ }