List of usage examples for java.util Objects equals
public static boolean equals(Object a, Object b)
From source file:com.cloud.agent.api.manager.UpdateNuageVspDeviceCommand.java
@Override public boolean equals(Object o) { if (this == o) { return true; }/*from www .j a va2 s . c om*/ if (!(o instanceof UpdateNuageVspDeviceCommand)) { return false; } UpdateNuageVspDeviceCommand that = (UpdateNuageVspDeviceCommand) o; return super.equals(that) && Objects.equals(configuration, that.configuration); }
From source file:com.linksinnovation.elearning.model.Answer.java
@Override public boolean equals(Object obj) { if (obj == null) { return false; }/*from w w w.j a va 2s . c o m*/ if (getClass() != obj.getClass()) { return false; } final Answer other = (Answer) obj; if (!Objects.equals(this.id, other.id)) { return false; } return true; }
From source file:com.linksinnovation.elearning.model.Viewer.java
@Override public boolean equals(Object obj) { if (obj == null) { return false; }//from w ww .java2s.co m if (getClass() != obj.getClass()) { return false; } final Viewer other = (Viewer) obj; if (!Objects.equals(this.id, other.id)) { return false; } return true; }
From source file:com.jivesoftware.os.upena.amza.shared.UpenaRingHost.java
@Override public boolean equals(Object obj) { if (obj == null) { return false; }/*from w ww .j av a 2 s.c o m*/ if (getClass() != obj.getClass()) { return false; } final UpenaRingHost other = (UpenaRingHost) obj; if (!Objects.equals(this.host, other.host)) { return false; } if (this.port != other.port) { return false; } return true; }
From source file:io.flutter.editor.FlutterCompletionContributor.java
private static Icon findIcon(@NotNull final CompletionSuggestion suggestion) { final Element element = suggestion.getElement(); if (element != null) { final String returnType = element.getReturnType(); if (!StringUtils.isEmpty(returnType)) { final String name = element.getName(); if (name != null) { final String declaringType = suggestion.getDeclaringType(); if (Objects.equals(declaringType, "Colors")) { final FlutterColors.FlutterColor color = FlutterColors.getColor(name); if (color != null) { return JBUI.scale(new ColorIcon(ICON_SIZE, color.getAWTColor())); }//from w ww.j av a 2s . c om } else if (Objects.equals(declaringType, "Icons")) { final Icon icon = FlutterMaterialIcons.getMaterialIconForName(name); // If we have no icon, show an empty node (which is preferable to the default "IconData" text). return icon != null ? icon : EMPTY_ICON; } } } } return null; }
From source file:br.com.ezequieljuliano.argos.domain.Level.java
@Override public boolean equals(Object obj) { if (obj == null) { return false; }//from w ww. j a v a 2 s.c o m if (getClass() != obj.getClass()) { return false; } final Level other = (Level) obj; return Objects.equals(this.id, other.id); }
From source file:com.facebook.presto.kinesis.KinesisTableLayoutHandle.java
@Override public boolean equals(Object o) { if (this == o) { return true; }/*from www. j a v a2s . co m*/ if (o == null || getClass() != o.getClass()) { return false; } KinesisTableLayoutHandle that = (KinesisTableLayoutHandle) o; return Objects.equals(tableHandle, that.tableHandle); }
From source file:com.cloud.agent.api.manager.CleanUpDomainCommand.java
@Override public boolean equals(Object o) { if (this == o) { return true; }/*from w w w . java2 s . c o m*/ if (!(o instanceof CleanUpDomainCommand)) { return false; } CleanUpDomainCommand that = (CleanUpDomainCommand) o; return super.equals(that) && Objects.equals(_domainCleanUp, that._domainCleanUp); }
From source file:com.offbynull.peernetic.playground.chorddht.model.InternalPointer.java
@Override public boolean equals(Object obj) { if (obj == null) { return false; }/*from w w w. j ava 2 s. c om*/ if (getClass() != obj.getClass()) { return false; } final InternalPointer other = (InternalPointer) obj; if (!Objects.equals(this.id, other.id)) { return false; } return true; }
From source file:com.jivesoftware.os.upena.shared.Permission.java
@Override public boolean equals(Object obj) { if (obj == null) { return false; }/*from w ww. j a va 2 s .com*/ if (getClass() != obj.getClass()) { return false; } final Permission other = (Permission) obj; if (!Objects.equals(this.permission, other.permission)) { return false; } return true; }