java.lang.Object Java Examples
The following examples show how to use
java.lang.Object.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: GpsDateTime.java From mavlink with MIT License | 6 votes |
@Override public boolean equals(Object o) { if (this == o) return true; if (o == null || !getClass().equals(o.getClass())) return false; GpsDateTime other = (GpsDateTime)o; if (!Objects.deepEquals(year, other.year)) return false; if (!Objects.deepEquals(month, other.month)) return false; if (!Objects.deepEquals(day, other.day)) return false; if (!Objects.deepEquals(hour, other.hour)) return false; if (!Objects.deepEquals(min, other.min)) return false; if (!Objects.deepEquals(sec, other.sec)) return false; if (!Objects.deepEquals(clockstat, other.clockstat)) return false; if (!Objects.deepEquals(vissat, other.vissat)) return false; if (!Objects.deepEquals(usesat, other.usesat)) return false; if (!Objects.deepEquals(gppgl, other.gppgl)) return false; if (!Objects.deepEquals(sigusedmask, other.sigusedmask)) return false; if (!Objects.deepEquals(percentused, other.percentused)) return false; return true; }
Example #2
Source File: CreateReviewForEpisode.java From apollo-android with MIT License | 6 votes |
@Override public boolean equals(Object o) { if (o == this) { return true; } if (o instanceof CreateReview) { CreateReview that = (CreateReview) o; return this.__typename.equals(that.__typename) && this.stars == that.stars && this.commentary.equals(that.commentary) && this.listOfListOfString.equals(that.listOfListOfString) && this.listOfListOfEnum.equals(that.listOfListOfEnum) && this.listOfListOfCustom.equals(that.listOfListOfCustom) && this.listOfListOfObject.equals(that.listOfListOfObject); } return false; }
Example #3
Source File: AbstractProtoMapper.java From conductor with Apache License 2.0 | 6 votes |
public WorkflowDef fromProto(WorkflowDefPb.WorkflowDef from) { WorkflowDef to = new WorkflowDef(); to.setName( from.getName() ); to.setDescription( from.getDescription() ); to.setVersion( from.getVersion() ); to.setTasks( from.getTasksList().stream().map(this::fromProto).collect(Collectors.toCollection(ArrayList::new)) ); to.setInputParameters( from.getInputParametersList().stream().collect(Collectors.toCollection(ArrayList::new)) ); Map<String, Object> outputParametersMap = new HashMap<String, Object>(); for (Map.Entry<String, Value> pair : from.getOutputParametersMap().entrySet()) { outputParametersMap.put( pair.getKey(), fromProto( pair.getValue() ) ); } to.setOutputParameters(outputParametersMap); to.setFailureWorkflow( from.getFailureWorkflow() ); to.setSchemaVersion( from.getSchemaVersion() ); to.setRestartable( from.getRestartable() ); to.setWorkflowStatusListenerEnabled( from.getWorkflowStatusListenerEnabled() ); to.setOwnerEmail( from.getOwnerEmail() ); to.setTimeoutPolicy( fromProto( from.getTimeoutPolicy() ) ); to.setTimeoutSeconds( from.getTimeoutSeconds() ); return to; }
Example #4
Source File: EfiStatus.java From mavlink with MIT License | 6 votes |
@Override public boolean equals(Object o) { if (this == o) return true; if (o == null || !getClass().equals(o.getClass())) return false; EfiStatus other = (EfiStatus)o; if (!Objects.deepEquals(health, other.health)) return false; if (!Objects.deepEquals(ecuIndex, other.ecuIndex)) return false; if (!Objects.deepEquals(rpm, other.rpm)) return false; if (!Objects.deepEquals(fuelConsumed, other.fuelConsumed)) return false; if (!Objects.deepEquals(fuelFlow, other.fuelFlow)) return false; if (!Objects.deepEquals(engineLoad, other.engineLoad)) return false; if (!Objects.deepEquals(throttlePosition, other.throttlePosition)) return false; if (!Objects.deepEquals(sparkDwellTime, other.sparkDwellTime)) return false; if (!Objects.deepEquals(barometricPressure, other.barometricPressure)) return false; if (!Objects.deepEquals(intakeManifoldPressure, other.intakeManifoldPressure)) return false; if (!Objects.deepEquals(intakeManifoldTemperature, other.intakeManifoldTemperature)) return false; if (!Objects.deepEquals(cylinderHeadTemperature, other.cylinderHeadTemperature)) return false; if (!Objects.deepEquals(ignitionTiming, other.ignitionTiming)) return false; if (!Objects.deepEquals(injectionTime, other.injectionTime)) return false; return true; }
Example #5
Source File: TestQuery.java From apollo-android with MIT License | 6 votes |
@SuppressWarnings({"rawtypes", "unchecked"}) public ResponseFieldMarshaller marshaller() { return new ResponseFieldMarshaller() { @Override public void marshal(ResponseWriter writer) { writer.writeString($responseFields[0], __typename); writer.writeString($responseFields[1], homePlanet.isPresent() ? homePlanet.get() : null); writer.writeList($responseFields[2], friends.isPresent() ? friends.get() : null, new ResponseWriter.ListWriter() { @Override public void write(List items, ResponseWriter.ListItemWriter listItemWriter) { for (Object item : items) { listItemWriter.writeObject(((Friend1) item).marshaller()); } } }); writer.writeString($responseFields[3], name); } }; }
Example #6
Source File: OpticalFlow.java From mavlink with MIT License | 6 votes |
@Override public boolean equals(Object o) { if (this == o) return true; if (o == null || !getClass().equals(o.getClass())) return false; OpticalFlow other = (OpticalFlow)o; if (!Objects.deepEquals(timeUsec, other.timeUsec)) return false; if (!Objects.deepEquals(sensorId, other.sensorId)) return false; if (!Objects.deepEquals(flowX, other.flowX)) return false; if (!Objects.deepEquals(flowY, other.flowY)) return false; if (!Objects.deepEquals(flowCompMX, other.flowCompMX)) return false; if (!Objects.deepEquals(flowCompMY, other.flowCompMY)) return false; if (!Objects.deepEquals(quality, other.quality)) return false; if (!Objects.deepEquals(groundDistance, other.groundDistance)) return false; if (!Objects.deepEquals(flowRateX, other.flowRateX)) return false; if (!Objects.deepEquals(flowRateY, other.flowRateY)) return false; return true; }
Example #7
Source File: ControlSystemState.java From mavlink with MIT License | 6 votes |
@Override public boolean equals(Object o) { if (this == o) return true; if (o == null || !getClass().equals(o.getClass())) return false; ControlSystemState other = (ControlSystemState)o; if (!Objects.deepEquals(timeUsec, other.timeUsec)) return false; if (!Objects.deepEquals(xAcc, other.xAcc)) return false; if (!Objects.deepEquals(yAcc, other.yAcc)) return false; if (!Objects.deepEquals(zAcc, other.zAcc)) return false; if (!Objects.deepEquals(xVel, other.xVel)) return false; if (!Objects.deepEquals(yVel, other.yVel)) return false; if (!Objects.deepEquals(zVel, other.zVel)) return false; if (!Objects.deepEquals(xPos, other.xPos)) return false; if (!Objects.deepEquals(yPos, other.yPos)) return false; if (!Objects.deepEquals(zPos, other.zPos)) return false; if (!Objects.deepEquals(airspeed, other.airspeed)) return false; if (!Objects.deepEquals(velVariance, other.velVariance)) return false; if (!Objects.deepEquals(posVariance, other.posVariance)) return false; if (!Objects.deepEquals(q, other.q)) return false; if (!Objects.deepEquals(rollRate, other.rollRate)) return false; if (!Objects.deepEquals(pitchRate, other.pitchRate)) return false; if (!Objects.deepEquals(yawRate, other.yawRate)) return false; return true; }
Example #8
Source File: SlugsNavigation.java From mavlink with MIT License | 6 votes |
@Override public boolean equals(Object o) { if (this == o) return true; if (o == null || !getClass().equals(o.getClass())) return false; SlugsNavigation other = (SlugsNavigation)o; if (!Objects.deepEquals(uM, other.uM)) return false; if (!Objects.deepEquals(phiC, other.phiC)) return false; if (!Objects.deepEquals(thetaC, other.thetaC)) return false; if (!Objects.deepEquals(psidotC, other.psidotC)) return false; if (!Objects.deepEquals(ayBody, other.ayBody)) return false; if (!Objects.deepEquals(totaldist, other.totaldist)) return false; if (!Objects.deepEquals(dist2go, other.dist2go)) return false; if (!Objects.deepEquals(fromwp, other.fromwp)) return false; if (!Objects.deepEquals(towp, other.towp)) return false; if (!Objects.deepEquals(hC, other.hC)) return false; return true; }
Example #9
Source File: JsonTestCase.java From soabase-halva with Apache License 2.0 | 6 votes |
@Override public boolean equals(Object rhsObj) { if ( this == rhsObj ) { return true; } if ( rhsObj == null || getClass() != rhsObj.getClass() ) { return false; } JsonTestCase rhs = (JsonTestCase)rhsObj; if ( !firstName.equals(rhs.firstName) ) { return false; } if ( !lastName.equals(rhs.lastName) ) { return false; } if ( age != rhs.age ) { return false; } return true; }
Example #10
Source File: TestQuery.java From apollo-android with MIT License | 6 votes |
@SuppressWarnings({"rawtypes", "unchecked"}) public ResponseFieldMarshaller marshaller() { return new ResponseFieldMarshaller() { @Override public void marshal(ResponseWriter writer) { writer.writeString($responseFields[0], __typename); writer.writeCustom((ResponseField.CustomTypeField) $responseFields[1], id); writer.writeString($responseFields[2], name); writer.writeList($responseFields[3], friends.isPresent() ? friends.get() : null, new ResponseWriter.ListWriter() { @Override public void write(List items, ResponseWriter.ListItemWriter listItemWriter) { for (Object item : items) { listItemWriter.writeObject(((Friend) item).marshaller()); } } }); } }; }
Example #11
Source File: BloodTestMultiMessage.java From xDrip with GNU General Public License v3.0 | 6 votes |
@Override public BloodTestMultiMessage decode(ProtoReader reader) throws IOException { Builder builder = new Builder(); long token = reader.beginMessage(); for (int tag; (tag = reader.nextTag()) != -1;) { switch (tag) { case 1: builder.bloodtest_message.add(BloodTestMessage.ADAPTER.decode(reader)); break; default: { FieldEncoding fieldEncoding = reader.peekFieldEncoding(); Object value = fieldEncoding.rawProtoAdapter().decode(reader); builder.addUnknownField(tag, fieldEncoding, value); } } } reader.endMessage(token); return builder.build(); }
Example #12
Source File: TestQuery.java From apollo-android with MIT License | 6 votes |
@SuppressWarnings({"rawtypes", "unchecked"}) public ResponseFieldMarshaller marshaller() { return new ResponseFieldMarshaller() { @Override public void marshal(ResponseWriter writer) { writer.writeString($responseFields[0], __typename); writer.writeString($responseFields[1], name); writer.writeString($responseFields[2], primaryFunction.isPresent() ? primaryFunction.get() : null); writer.writeList($responseFields[3], friends.isPresent() ? friends.get() : null, new ResponseWriter.ListWriter() { @Override public void write(List items, ResponseWriter.ListItemWriter listItemWriter) { for (Object item : items) { listItemWriter.writeObject(((Friend1) item).marshaller()); } } }); } }; }
Example #13
Source File: TestQuery.java From apollo-android with MIT License | 6 votes |
@SuppressWarnings({"rawtypes", "unchecked"}) public ResponseFieldMarshaller marshaller() { return new ResponseFieldMarshaller() { @Override public void marshal(ResponseWriter writer) { writer.writeString($responseFields[0], __typename); writer.writeString($responseFields[1], name); writer.writeList($responseFields[2], friends.isPresent() ? friends.get() : null, new ResponseWriter.ListWriter() { @Override public void write(List items, ResponseWriter.ListItemWriter listItemWriter) { for (Object item : items) { listItemWriter.writeObject(((Friend) item).marshaller()); } } }); } }; }
Example #14
Source File: SlugsConfigurationCamera.java From mavlink with MIT License | 5 votes |
@Override public boolean equals(Object o) { if (this == o) return true; if (o == null || !getClass().equals(o.getClass())) return false; SlugsConfigurationCamera other = (SlugsConfigurationCamera)o; if (!Objects.deepEquals(target, other.target)) return false; if (!Objects.deepEquals(idorder, other.idorder)) return false; if (!Objects.deepEquals(order, other.order)) return false; return true; }
Example #15
Source File: StreamZipEntriesTest.java From hottub with GNU General Public License v2.0 | 5 votes |
@Test public void testStreamZip() throws IOException { try (ZipFile zf = new ZipFile(new File(System.getProperty("test.src", "."), "input.zip"))) { zf.stream().forEach(e -> assertTrue(e instanceof ZipEntry)); zf.stream().forEach(e -> assertEquals(e.toString(), "ReadZip.java")); Object elements[] = zf.stream().toArray(); assertEquals(1, elements.length); assertEquals(elements[0].toString(), "ReadZip.java"); } }
Example #16
Source File: ScriptItem.java From mavlink with MIT License | 5 votes |
@Override public boolean equals(Object o) { if (this == o) return true; if (o == null || !getClass().equals(o.getClass())) return false; ScriptItem other = (ScriptItem)o; if (!Objects.deepEquals(targetSystem, other.targetSystem)) return false; if (!Objects.deepEquals(targetComponent, other.targetComponent)) return false; if (!Objects.deepEquals(seq, other.seq)) return false; if (!Objects.deepEquals(name, other.name)) return false; return true; }
Example #17
Source File: ModelWithSuper_.java From epoxy with Apache License 2.0 | 5 votes |
/** * Register a listener that will be called when this model visibility has changed. * <p> * The listener will contribute to this model's hashCode state per the {@link * com.airbnb.epoxy.EpoxyAttribute.Option#DoNotHash} rules. */ public ModelWithSuper_ onVisibilityChanged( OnModelVisibilityChangedListener<ModelWithSuper_, Object> listener) { onMutation(); this.onModelVisibilityChangedListener_epoxyGeneratedModel = listener; return this; }
Example #18
Source File: V2Extension.java From mavlink with MIT License | 5 votes |
@Override public boolean equals(Object o) { if (this == o) return true; if (o == null || !getClass().equals(o.getClass())) return false; V2Extension other = (V2Extension)o; if (!Objects.deepEquals(targetNetwork, other.targetNetwork)) return false; if (!Objects.deepEquals(targetSystem, other.targetSystem)) return false; if (!Objects.deepEquals(targetComponent, other.targetComponent)) return false; if (!Objects.deepEquals(messageType, other.messageType)) return false; if (!Objects.deepEquals(payload, other.payload)) return false; return true; }
Example #19
Source File: HeroDetails.java From apollo-android with MIT License | 5 votes |
@Override public boolean equals(Object o) { if (o == this) { return true; } if (o instanceof AsDroid) { AsDroid that = (AsDroid) o; return this.__typename.equals(that.__typename) && this.name.equals(that.name) && this.friendsConnection.equals(that.friendsConnection) && this.primaryFunction.equals(that.primaryFunction); } return false; }
Example #20
Source File: ModelReturningClassType_.java From epoxy with Apache License 2.0 | 5 votes |
@Override public boolean equals(Object o) { if (o == this) { return true; } if (!(o instanceof ModelReturningClassType_)) { return false; } if (!super.equals(o)) { return false; } ModelReturningClassType_ that = (ModelReturningClassType_) o; if (((onModelBoundListener_epoxyGeneratedModel == null) != (that.onModelBoundListener_epoxyGeneratedModel == null))) { return false; } if (((onModelUnboundListener_epoxyGeneratedModel == null) != (that.onModelUnboundListener_epoxyGeneratedModel == null))) { return false; } if (((onModelVisibilityStateChangedListener_epoxyGeneratedModel == null) != (that.onModelVisibilityStateChangedListener_epoxyGeneratedModel == null))) { return false; } if (((onModelVisibilityChangedListener_epoxyGeneratedModel == null) != (that.onModelVisibilityChangedListener_epoxyGeneratedModel == null))) { return false; } if ((value != that.value)) { return false; } return true; }
Example #21
Source File: TestQuery.java From apollo-android with MIT License | 5 votes |
@Override public boolean equals(Object o) { if (o == this) { return true; } if (o instanceof Node) { Node that = (Node) o; return this.__typename.equals(that.__typename) && this.name.equals(that.name); } return false; }
Example #22
Source File: ObjectOrder5.java From javase with MIT License | 5 votes |
public boolean equals(Object o) { if (!(o instanceof Name)) return false; Name n = (Name)o; return n.firstName.equals(firstName) && n.lastName.equals(lastName); }
Example #23
Source File: ControllerWithComposite02CreatorImpl.java From nalu with Apache License 2.0 | 5 votes |
@Override public void setParameter(Object object, String... params) throws RoutingInterceptionException { ControllerWithComposite02 controller = (ControllerWithComposite02) object; StringBuilder sb01 = new StringBuilder(); if (params != null) { if (params.length >= 1) { sb01.setLength(0); sb01.append("controller >>").append(controller.getClass().getCanonicalName()).append("<< --> using method >>setParameter02<< to set value >>").append(params[0]).append("<<"); ClientLogger.get().logDetailed(sb01.toString(), 4); controller.setParameter02(params[0]); } } }
Example #24
Source File: EfficientEquals.java From dataenum with Apache License 2.0 | 5 votes |
@Override public boolean equals(Object other) { if (other == this) return true; if (!(other instanceof Value)) return false; Value o = (Value) other; return o.param1 == param1 && o.param3 == param3 && o.param4 == param4 && o.param2.equals(this.param2); }
Example #25
Source File: ControllerWithComposite03CreatorImpl.java From nalu with Apache License 2.0 | 5 votes |
@Override public void setParameter(Object object, String... params) throws RoutingInterceptionException { ControllerWithComposite03 controller = (ControllerWithComposite03) object; StringBuilder sb01 = new StringBuilder(); if (params != null) { if (params.length >= 1) { sb01.setLength(0); sb01.append("controller >>").append(controller.getClass().getCanonicalName()).append("<< --> using method >>setParameter03<< to set value >>").append(params[0]).append("<<"); ClientLogger.get().logDetailed(sb01.toString(), 4); controller.setParameter03(params[0]); } } }
Example #26
Source File: GenerateDefaultLayoutMethodNextParentLayout$WithLayout_.java From epoxy with Apache License 2.0 | 5 votes |
@Override public void handlePostBind(final Object object, int position) { if (onModelBoundListener_epoxyGeneratedModel != null) { onModelBoundListener_epoxyGeneratedModel.onModelBound(this, object, position); } validateStateHasNotChangedSinceAdded("The model was changed during the bind call.", position); }
Example #27
Source File: TestQuery.java From apollo-android with MIT License | 5 votes |
@Override public boolean equals(Object o) { if (o == this) { return true; } if (o instanceof Hero) { Hero that = (Hero) o; return this.__typename.equals(that.__typename) && this.fragments.equals(that.fragments); } return false; }
Example #28
Source File: BaseModelViewWithSuperDiffBindModel_.java From epoxy with Apache License 2.0 | 5 votes |
@Override public boolean equals(Object o) { if (o == this) { return true; } if (!(o instanceof BaseModelViewModel_)) { return false; } if (!super.equals(o)) { return false; } BaseModelViewModel_ that = (BaseModelViewModel_) o; if (((onModelBoundListener_epoxyGeneratedModel == null) != (that.onModelBoundListener_epoxyGeneratedModel == null))) { return false; } if (((onModelUnboundListener_epoxyGeneratedModel == null) != (that.onModelUnboundListener_epoxyGeneratedModel == null))) { return false; } if (((onModelVisibilityStateChangedListener_epoxyGeneratedModel == null) != (that.onModelVisibilityStateChangedListener_epoxyGeneratedModel == null))) { return false; } if (((onModelVisibilityChangedListener_epoxyGeneratedModel == null) != (that.onModelVisibilityChangedListener_epoxyGeneratedModel == null))) { return false; } if ((clickListener_String != null ? !clickListener_String.equals(that.clickListener_String) : that.clickListener_String != null)) { return false; } return true; }
Example #29
Source File: HeroDetailQuery.java From apollo-android with MIT License | 5 votes |
@Override public boolean equals(Object o) { if (o == this) { return true; } if (o instanceof Friend2) { Friend2 that = (Friend2) o; return this.__typename.equals(that.__typename) && this.fragments.equals(that.fragments); } return false; }
Example #30
Source File: Vibration.java From mavlink with MIT License | 5 votes |
@Override public boolean equals(Object o) { if (this == o) return true; if (o == null || !getClass().equals(o.getClass())) return false; Vibration other = (Vibration)o; if (!Objects.deepEquals(timeUsec, other.timeUsec)) return false; if (!Objects.deepEquals(vibrationX, other.vibrationX)) return false; if (!Objects.deepEquals(vibrationY, other.vibrationY)) return false; if (!Objects.deepEquals(vibrationZ, other.vibrationZ)) return false; if (!Objects.deepEquals(clipping0, other.clipping0)) return false; if (!Objects.deepEquals(clipping1, other.clipping1)) return false; if (!Objects.deepEquals(clipping2, other.clipping2)) return false; return true; }