List of usage examples for java.util Objects equals
public static boolean equals(Object a, Object b)
From source file:net.cyphoria.cylus.domain.KontenArt.java
@Override public boolean equals(final Object o) { if (this == o) { return true; }//from ww w . ja v a 2 s .c om if (o == null || getClass() != o.getClass()) { return false; } final KontenArt kontenArt = (KontenArt) o; return Objects.equals(name, kontenArt.name); }
From source file:eu.eubrazilcc.lvl.core.Sorting.java
@Override public boolean equals(final Object obj) { if (obj == null || !(obj instanceof Sorting)) { return false; }/*w w w. j a v a 2 s. c om*/ final Sorting other = Sorting.class.cast(obj); return Objects.equals(field, other.field) && Objects.equals(order, other.order); }
From source file:ca.qhrtech.entities.Category.java
@Override public boolean equals(Object obj) { if (this == obj) { return true; }/*w ww . j a v a2s .c om*/ if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } final Category other = (Category) obj; if (this.id != other.id) { return false; } if (!Objects.equals(this.name, other.name)) { return false; } return true; }
From source file:com.cloud.agent.api.manager.EntityExistsCommand.java
@Override public boolean equals(Object o) { if (this == o) { return true; }//from www . j a v a 2s .c o m if (!(o instanceof EntityExistsCommand)) { return false; } EntityExistsCommand that = (EntityExistsCommand) o; return super.equals(that) && Objects.equals(getType(), that.getType()) && Objects.equals(_uuid, that._uuid); }
From source file:com.haulmont.cuba.web.gui.components.converters.StringToEnumConverter.java
@Override public Enum convertToModel(String value, Class<? extends Enum> targetType, Locale locale) throws ConversionException { if (value == null) { return null; }// ww w .jav a2 s . c o m if (locale == null) { locale = VaadinSession.getCurrent().getLocale(); } if (isTrimming()) { value = StringUtils.trimToEmpty(value); } Object[] enumConstants = enumClass.getEnumConstants(); if (enumConstants != null) { for (Object enumValue : enumConstants) { if (Objects.equals(value, messages.getMessage((Enum) enumValue, locale))) { return (Enum) enumValue; } } } return null; }
From source file:io.sidecar.query.Arg.java
@Override public boolean equals(Object o) { if (this == o) { return true; }//from w ww. j a v a2s . c om if (o == null || getClass() != o.getClass()) { return false; } Arg that = (Arg) o; return Objects.equals(this.key, that.key) && Objects.equals(this.value, that.value); }
From source file:xyz.cloudbans.entities.data.Player.java
@Override public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof Player)) return false; Player that = (Player) o;//from w w w . j a va 2 s . c o m return Objects.equals(getUuid(), that.getUuid()) && Objects.equals(getRealm(), that.getRealm()) && Objects.equals(getLastNameUpdate(), that.getLastNameUpdate()) && Objects.equals(getPlayerNames(), that.getPlayerNames()); }
From source file:com.vsct.dt.hesperides.resources.Application.java
@Override public boolean equals(Object obj) { if (this == obj) { return true; }//from www . j ava 2 s.c o m if (obj == null || getClass() != obj.getClass()) { return false; } final Application other = (Application) obj; return Objects.equals(this.name, other.name) && Objects.equals(this.platforms, other.platforms); }
From source file:livhuwani.rambuda.policy_app.services.Impl.IntermediaryCrudServiceImpl.java
@Override public void deleteIntermediary(Long id) { List<Intermediary> validUser = new ArrayList<>(); List<Intermediary> allUsers = intermediaryRepository.findAll(); for (Intermediary user : allUsers) { if (Objects.equals(user.getId(), id)) { validUser.add(user);//from ww w.j a v a2 s .co m } } intermediaryRepository.deleteInBatch(validUser); }
From source file:com.vsct.dt.hesperides.applications.InstanceModel.java
@Override public boolean equals(Object obj) { if (this == obj) { return true; }//ww w . jav a 2 s . co m if (obj == null || getClass() != obj.getClass()) { return false; } final InstanceModel other = (InstanceModel) obj; return Objects.equals(this.keys, other.keys); }