下面列出了androidx.annotation.PluralsRes#java.lang.Object 实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。
@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;
}
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;
}
@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);
}
};
}
@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;
}
@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;
}
@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;
}
@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;
}
@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;
}
@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());
}
}
});
}
};
}
@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();
}
@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());
}
}
});
}
};
}
@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());
}
}
});
}
};
}
@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;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof Edge) {
Edge that = (Edge) o;
return this.__typename.equals(that.__typename)
&& this.node.equals(that.node);
}
return false;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof Fragments) {
Fragments that = (Fragments) o;
return this.humanDetails.equals(that.humanDetails);
}
return false;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || !getClass().equals(o.getClass())) return false;
SerialControl other = (SerialControl)o;
if (!Objects.deepEquals(device, other.device)) return false;
if (!Objects.deepEquals(flags, other.flags)) return false;
if (!Objects.deepEquals(timeout, other.timeout)) return false;
if (!Objects.deepEquals(baudrate, other.baudrate)) return false;
if (!Objects.deepEquals(count, other.count)) return false;
if (!Objects.deepEquals(data, other.data)) return false;
return true;
}
@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;
}
/**
* 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 ModelWithFieldAnnotation_ onVisibilityChanged(
OnModelVisibilityChangedListener<ModelWithFieldAnnotation_, Object> listener) {
onMutation();
this.onModelVisibilityChangedListener_epoxyGeneratedModel = listener;
return this;
}
@Override
public boolean equals(Object other) {
if (other == this) return true;
if (!(other instanceof MovieParams)) return false;
MovieParams o = (MovieParams) other;
return unknownFields().equals(o.unknownFields())
&& Internal.equals(viewBoxWidth, o.viewBoxWidth)
&& Internal.equals(viewBoxHeight, o.viewBoxHeight)
&& Internal.equals(fps, o.fps)
&& Internal.equals(frames, o.frames);
}
/**
* Register a listener that will be called when this model visibility state has changed.
* <p>
* The listener will contribute to this model's hashCode state per the {@link
* com.airbnb.epoxy.EpoxyAttribute.Option#DoNotHash} rules.
*/
public ModelForRProcessingTest_ onVisibilityStateChanged(
OnModelVisibilityStateChangedListener<ModelForRProcessingTest_, Object> listener) {
onMutation();
this.onModelVisibilityStateChangedListener_epoxyGeneratedModel = listener;
return this;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || !getClass().equals(o.getClass())) return false;
IsbdLinkStatus other = (IsbdLinkStatus)o;
if (!Objects.deepEquals(timestamp, other.timestamp)) return false;
if (!Objects.deepEquals(lastHeartbeat, other.lastHeartbeat)) return false;
if (!Objects.deepEquals(failedSessions, other.failedSessions)) return false;
if (!Objects.deepEquals(successfulSessions, other.successfulSessions)) return false;
if (!Objects.deepEquals(signalQuality, other.signalQuality)) return false;
if (!Objects.deepEquals(ringPending, other.ringPending)) return false;
if (!Objects.deepEquals(txSessionPending, other.txSessionPending)) return false;
if (!Objects.deepEquals(rxSessionPending, other.rxSessionPending)) return false;
return true;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof Data) {
Data that = (Data) o;
return this.hero.equals(that.hero);
}
return false;
}
@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.id.equals(that.id)
&& this.fragments.equals(that.fragments);
}
return false;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof FriendsConnection1) {
FriendsConnection1 that = (FriendsConnection1) o;
return this.__typename.equals(that.__typename)
&& this.totalCount.equals(that.totalCount)
&& this.edges.equals(that.edges)
&& this.pageInfo.equals(that.pageInfo)
&& this.isEmpty == that.isEmpty;
}
return false;
}
@Override
public void onVisibilityChanged(float percentVisibleHeight, float percentVisibleWidth,
int visibleHeight, int visibleWidth, final Object object) {
if (onModelVisibilityChangedListener_epoxyGeneratedModel != null) {
onModelVisibilityChangedListener_epoxyGeneratedModel.onVisibilityChanged(this, object, percentVisibleHeight, percentVisibleWidth, visibleHeight, visibleWidth);
}
super.onVisibilityChanged(percentVisibleHeight, percentVisibleWidth, visibleHeight, visibleWidth, object);
}
/**
* Register a listener that will be called when this model visibility state has changed.
* <p>
* The listener will contribute to this model's hashCode state per the {@link
* com.airbnb.epoxy.EpoxyAttribute.Option#DoNotHash} rules.
*/
public ModelWithViewClickListener_ onVisibilityStateChanged(
OnModelVisibilityStateChangedListener<ModelWithViewClickListener_, Object> listener) {
onMutation();
this.onModelVisibilityStateChangedListener_epoxyGeneratedModel = listener;
return this;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || !getClass().equals(o.getClass())) return false;
PowerStatus other = (PowerStatus)o;
if (!Objects.deepEquals(vcc, other.vcc)) return false;
if (!Objects.deepEquals(vservo, other.vservo)) return false;
if (!Objects.deepEquals(flags, other.flags)) return false;
return true;
}
/**
* 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 ModelWithConstructors_ onVisibilityChanged(
OnModelVisibilityChangedListener<ModelWithConstructors_, Object> listener) {
onMutation();
this.onModelVisibilityChangedListener_epoxyGeneratedModel = listener;
return this;
}
/**
* Register a listener that will be called when this model visibility state has changed.
* <p>
* The listener will contribute to this model's hashCode state per the {@link
* com.airbnb.epoxy.EpoxyAttribute.Option#DoNotHash} rules.
*/
public ModelWithViewLongClickListener_ onVisibilityStateChanged(
OnModelVisibilityStateChangedListener<ModelWithViewLongClickListener_, Object> listener) {
onMutation();
this.onModelVisibilityStateChangedListener_epoxyGeneratedModel = listener;
return this;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || !getClass().equals(o.getClass())) return false;
CameraSettings other = (CameraSettings)o;
if (!Objects.deepEquals(timeBootMs, other.timeBootMs)) return false;
if (!Objects.deepEquals(modeId, other.modeId)) return false;
if (!Objects.deepEquals(zoomlevel, other.zoomlevel)) return false;
if (!Objects.deepEquals(focuslevel, other.focuslevel)) return false;
return true;
}