@Override public boolean equals(Object obj) { if(obj instanceof UsernamePassword){ final UsernamePassword that = (UsernamePassword) obj; return Objects.equal(this.username, that.getUsername()) && Objects.equal(this.password, that.getPassword()); } return false; }
@Override public BoneCPDataSource load(UsernamePassword key) throws Exception { BoneCPDataSource ds = null; ds = new BoneCPDataSource(getConfig()); ds.setUsername(key.getUsername()); ds.setPassword(key.getPassword()); return ds; } });
@Override public BoneCPDataSource apply(UsernamePassword key) { BoneCPDataSource ds = null; ds = new BoneCPDataSource(BoneCPDataSource.this.getConfig()); ds.setUsername(key.getUsername()); ds.setPassword(key.getPassword()); return ds; }