@Override public Phone 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.number(ProtoAdapter.STRING.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(); }
@Override public Layout 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.x(ProtoAdapter.FLOAT.decode(reader)); break; case 2: builder.y(ProtoAdapter.FLOAT.decode(reader)); break; case 3: builder.width(ProtoAdapter.FLOAT.decode(reader)); break; case 4: builder.height(ProtoAdapter.FLOAT.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(); }
@Override public ShapeArgs 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.d(ProtoAdapter.STRING.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(); }
@Override public RectArgs 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.x(ProtoAdapter.FLOAT.decode(reader)); break; case 2: builder.y(ProtoAdapter.FLOAT.decode(reader)); break; case 3: builder.width(ProtoAdapter.FLOAT.decode(reader)); break; case 4: builder.height(ProtoAdapter.FLOAT.decode(reader)); break; case 5: builder.cornerRadius(ProtoAdapter.FLOAT.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(); }
@Override public EllipseArgs 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.x(ProtoAdapter.FLOAT.decode(reader)); break; case 2: builder.y(ProtoAdapter.FLOAT.decode(reader)); break; case 3: builder.radiusX(ProtoAdapter.FLOAT.decode(reader)); break; case 4: builder.radiusY(ProtoAdapter.FLOAT.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(); }
@Override public boolean equals(Object other) { if (other == this) return true; if (!(other instanceof ShapeStyle)) return false; ShapeStyle o = (ShapeStyle) other; return unknownFields().equals(o.unknownFields()) && Internal.equals(fill, o.fill) && Internal.equals(stroke, o.stroke) && Internal.equals(strokeWidth, o.strokeWidth) && Internal.equals(lineCap, o.lineCap) && Internal.equals(lineJoin, o.lineJoin) && Internal.equals(miterLimit, o.miterLimit) && Internal.equals(lineDashI, o.lineDashI) && Internal.equals(lineDashII, o.lineDashII) && Internal.equals(lineDashIII, o.lineDashIII); }
@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"); } }
@Override public SpriteEntity 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.imageKey(ProtoAdapter.STRING.decode(reader)); break; case 2: builder.frames.add(FrameEntity.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(); }
@Override public boolean equals(Object o) { if (o == this) { return true; } if (o instanceof AntennaFields) { AntennaFields that = (AntennaFields) o; return this.__typename.equals(that.__typename) && ((this.coordinates == null) ? (that.coordinates == null) : this.coordinates.equals(that.coordinates)) && ((this.generation == null) ? (that.generation == null) : this.generation.equals(that.generation)) && ((this.provider == null) ? (that.provider == null) : this.provider.equals(that.provider)) && ((this.lastUpdate == null) ? (that.lastUpdate == null) : this.lastUpdate.equals(that.lastUpdate)) && ((this.status == null) ? (that.status == null) : this.status.equals(that.status)) && ((this.dist == null) ? (that.dist == null) : this.dist.equals(that.dist)) && ((this.insee == null) ? (that.insee == null) : this.insee.equals(that.insee)) && ((this.city == null) ? (that.city == null) : this.city.equals(that.city)) && ((this.addressLabel == null) ? (that.addressLabel == null) : this.addressLabel.equals(that.addressLabel)); } return false; }
@Override public boolean equals(Object o) { if (o == this) { return true; } if (o instanceof NearestAntennaFromBouygues) { NearestAntennaFromBouygues that = (NearestAntennaFromBouygues) o; return this.__typename.equals(that.__typename) && ((this.coordinates == null) ? (that.coordinates == null) : this.coordinates.equals(that.coordinates)) && ((this.generation == null) ? (that.generation == null) : this.generation.equals(that.generation)) && ((this.provider == null) ? (that.provider == null) : this.provider.equals(that.provider)) && ((this.lastUpdate == null) ? (that.lastUpdate == null) : this.lastUpdate.equals(that.lastUpdate)) && ((this.status == null) ? (that.status == null) : this.status.equals(that.status)) && ((this.dist == null) ? (that.dist == null) : this.dist.equals(that.dist)) && ((this.insee == null) ? (that.insee == null) : this.insee.equals(that.insee)) && ((this.city == null) ? (that.city == null) : this.city.equals(that.city)) && ((this.addressLabel == null) ? (that.addressLabel == null) : this.addressLabel.equals(that.addressLabel)) && this.fragments.equals(that.fragments); } return false; }
@Override public boolean equals(Object o) { if (o == this) { return true; } if (o instanceof NearestAntennaFromFree) { NearestAntennaFromFree that = (NearestAntennaFromFree) o; return this.__typename.equals(that.__typename) && ((this.coordinates == null) ? (that.coordinates == null) : this.coordinates.equals(that.coordinates)) && ((this.generation == null) ? (that.generation == null) : this.generation.equals(that.generation)) && ((this.provider == null) ? (that.provider == null) : this.provider.equals(that.provider)) && ((this.lastUpdate == null) ? (that.lastUpdate == null) : this.lastUpdate.equals(that.lastUpdate)) && ((this.status == null) ? (that.status == null) : this.status.equals(that.status)) && ((this.dist == null) ? (that.dist == null) : this.dist.equals(that.dist)) && ((this.insee == null) ? (that.insee == null) : this.insee.equals(that.insee)) && ((this.city == null) ? (that.city == null) : this.city.equals(that.city)) && ((this.addressLabel == null) ? (that.addressLabel == null) : this.addressLabel.equals(that.addressLabel)) && this.fragments.equals(that.fragments); } return false; }
@Override public boolean equals(Object o) { if (o == this) { return true; } if (o instanceof NearestAntennaFromSfr3) { NearestAntennaFromSfr3 that = (NearestAntennaFromSfr3) o; return this.__typename.equals(that.__typename) && ((this.coordinates == null) ? (that.coordinates == null) : this.coordinates.equals(that.coordinates)) && ((this.generation == null) ? (that.generation == null) : this.generation.equals(that.generation)) && ((this.provider == null) ? (that.provider == null) : this.provider.equals(that.provider)) && ((this.lastUpdate == null) ? (that.lastUpdate == null) : this.lastUpdate.equals(that.lastUpdate)) && ((this.status == null) ? (that.status == null) : this.status.equals(that.status)) && ((this.dist == null) ? (that.dist == null) : this.dist.equals(that.dist)) && ((this.insee == null) ? (that.insee == null) : this.insee.equals(that.insee)) && ((this.city == null) ? (that.city == null) : this.city.equals(that.city)) && ((this.addressLabel == null) ? (that.addressLabel == null) : this.addressLabel.equals(that.addressLabel)) && this.fragments.equals(that.fragments); } return false; }
@Override public boolean equals(Object o) { if (o == this) { return true; } if (o instanceof NearestAntennaFromSfr1) { NearestAntennaFromSfr1 that = (NearestAntennaFromSfr1) o; return this.__typename.equals(that.__typename) && ((this.coordinates == null) ? (that.coordinates == null) : this.coordinates.equals(that.coordinates)) && ((this.generation == null) ? (that.generation == null) : this.generation.equals(that.generation)) && ((this.provider == null) ? (that.provider == null) : this.provider.equals(that.provider)) && ((this.lastUpdate == null) ? (that.lastUpdate == null) : this.lastUpdate.equals(that.lastUpdate)) && ((this.status == null) ? (that.status == null) : this.status.equals(that.status)) && ((this.dist == null) ? (that.dist == null) : this.dist.equals(that.dist)) && ((this.insee == null) ? (that.insee == null) : this.insee.equals(that.insee)) && ((this.city == null) ? (that.city == null) : this.city.equals(that.city)) && ((this.addressLabel == null) ? (that.addressLabel == null) : this.addressLabel.equals(that.addressLabel)) && this.fragments.equals(that.fragments); } return false; }
@Override public boolean equals(Object o) { if (o == this) { return true; } if (o instanceof NearestAntennaFromFree1) { NearestAntennaFromFree1 that = (NearestAntennaFromFree1) o; return this.__typename.equals(that.__typename) && ((this.coordinates == null) ? (that.coordinates == null) : this.coordinates.equals(that.coordinates)) && ((this.generation == null) ? (that.generation == null) : this.generation.equals(that.generation)) && ((this.provider == null) ? (that.provider == null) : this.provider.equals(that.provider)) && ((this.lastUpdate == null) ? (that.lastUpdate == null) : this.lastUpdate.equals(that.lastUpdate)) && ((this.status == null) ? (that.status == null) : this.status.equals(that.status)) && ((this.dist == null) ? (that.dist == null) : this.dist.equals(that.dist)) && ((this.insee == null) ? (that.insee == null) : this.insee.equals(that.insee)) && ((this.city == null) ? (that.city == null) : this.city.equals(that.city)) && ((this.addressLabel == null) ? (that.addressLabel == null) : this.addressLabel.equals(that.addressLabel)) && this.fragments.equals(that.fragments); } return false; }
@Override public boolean equals(Object o) { if (o == this) { return true; } if (o instanceof AsCity) { AsCity that = (AsCity) o; return this.__typename.equals(that.__typename) && ((this.city == null) ? (that.city == null) : this.city.equals(that.city)) && ((this.zipCode == null) ? (that.zipCode == null) : this.zipCode.equals(that.zipCode)) && ((this.nearestAntennaFromOrange == null) ? (that.nearestAntennaFromOrange == null) : this.nearestAntennaFromOrange.equals(that.nearestAntennaFromOrange)) && ((this.nearestAntennaFromBouygues == null) ? (that.nearestAntennaFromBouygues == null) : this.nearestAntennaFromBouygues.equals(that.nearestAntennaFromBouygues)) && ((this.nearestAntennaFromSfr == null) ? (that.nearestAntennaFromSfr == null) : this.nearestAntennaFromSfr.equals(that.nearestAntennaFromSfr)) && ((this.nearestAntennaFromFree == null) ? (that.nearestAntennaFromFree == null) : this.nearestAntennaFromFree.equals(that.nearestAntennaFromFree)); } return false; }
@Override public boolean equals(Object o) { if (o == this) { return true; } if (o instanceof NearestAntennaFromOrange2) { NearestAntennaFromOrange2 that = (NearestAntennaFromOrange2) o; return this.__typename.equals(that.__typename) && ((this.coordinates == null) ? (that.coordinates == null) : this.coordinates.equals(that.coordinates)) && ((this.generation == null) ? (that.generation == null) : this.generation.equals(that.generation)) && ((this.provider == null) ? (that.provider == null) : this.provider.equals(that.provider)) && ((this.lastUpdate == null) ? (that.lastUpdate == null) : this.lastUpdate.equals(that.lastUpdate)) && ((this.status == null) ? (that.status == null) : this.status.equals(that.status)) && ((this.dist == null) ? (that.dist == null) : this.dist.equals(that.dist)) && ((this.insee == null) ? (that.insee == null) : this.insee.equals(that.insee)) && ((this.city == null) ? (that.city == null) : this.city.equals(that.city)) && ((this.addressLabel == null) ? (that.addressLabel == null) : this.addressLabel.equals(that.addressLabel)) && this.fragments.equals(that.fragments); } return false; }
@Override public boolean equals(Object o) { if (o == this) { return true; } if (o instanceof NearestAntennaFromFree3) { NearestAntennaFromFree3 that = (NearestAntennaFromFree3) o; return this.__typename.equals(that.__typename) && ((this.coordinates == null) ? (that.coordinates == null) : this.coordinates.equals(that.coordinates)) && ((this.generation == null) ? (that.generation == null) : this.generation.equals(that.generation)) && ((this.provider == null) ? (that.provider == null) : this.provider.equals(that.provider)) && ((this.lastUpdate == null) ? (that.lastUpdate == null) : this.lastUpdate.equals(that.lastUpdate)) && ((this.status == null) ? (that.status == null) : this.status.equals(that.status)) && ((this.dist == null) ? (that.dist == null) : this.dist.equals(that.dist)) && ((this.insee == null) ? (that.insee == null) : this.insee.equals(that.insee)) && ((this.city == null) ? (that.city == null) : this.city.equals(that.city)) && ((this.addressLabel == null) ? (that.addressLabel == null) : this.addressLabel.equals(that.addressLabel)) && this.fragments.equals(that.fragments); } return false; }
@Override public boolean equals(Object o) { if (o == this) { return true; } if (o instanceof NearestAntennaFromFree2) { NearestAntennaFromFree2 that = (NearestAntennaFromFree2) o; return this.__typename.equals(that.__typename) && ((this.coordinates == null) ? (that.coordinates == null) : this.coordinates.equals(that.coordinates)) && ((this.generation == null) ? (that.generation == null) : this.generation.equals(that.generation)) && ((this.provider == null) ? (that.provider == null) : this.provider.equals(that.provider)) && ((this.lastUpdate == null) ? (that.lastUpdate == null) : this.lastUpdate.equals(that.lastUpdate)) && ((this.status == null) ? (that.status == null) : this.status.equals(that.status)) && ((this.dist == null) ? (that.dist == null) : this.dist.equals(that.dist)) && ((this.insee == null) ? (that.insee == null) : this.insee.equals(that.insee)) && ((this.city == null) ? (that.city == null) : this.city.equals(that.city)) && ((this.addressLabel == null) ? (that.addressLabel == null) : this.addressLabel.equals(that.addressLabel)) && this.fragments.equals(that.fragments); } return false; }
@Override public boolean equals(Object o) { if (o == this) { return true; } if (o instanceof NearestAntennaFromBouygues3) { NearestAntennaFromBouygues3 that = (NearestAntennaFromBouygues3) o; return this.__typename.equals(that.__typename) && ((this.coordinates == null) ? (that.coordinates == null) : this.coordinates.equals(that.coordinates)) && ((this.generation == null) ? (that.generation == null) : this.generation.equals(that.generation)) && ((this.provider == null) ? (that.provider == null) : this.provider.equals(that.provider)) && ((this.lastUpdate == null) ? (that.lastUpdate == null) : this.lastUpdate.equals(that.lastUpdate)) && ((this.status == null) ? (that.status == null) : this.status.equals(that.status)) && ((this.dist == null) ? (that.dist == null) : this.dist.equals(that.dist)) && ((this.insee == null) ? (that.insee == null) : this.insee.equals(that.insee)) && ((this.city == null) ? (that.city == null) : this.city.equals(that.city)) && ((this.addressLabel == null) ? (that.addressLabel == null) : this.addressLabel.equals(that.addressLabel)) && this.fragments.equals(that.fragments); } return false; }
@Override public boolean equals(Object other) { if (other == this) return true; if (!(other instanceof Phone)) return false; Phone o = (Phone) other; return Internal.equals(unknownFields(), o.unknownFields()) && Internal.equals(number, o.number); }
@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.param2 == param2 && o.param3 == param3 && o.param4 == param4; }
@Override public final boolean like(Object other, String group) { return group != null && other != null && other instanceof ModelDummyGroup && groupFieldsEqual((ModelDummyGroup) other, group) && !equals(other); }
@Override public boolean equals(Object other) { if (other == this) return true; if (!(other instanceof Value1)) return false; Value1 o = (Value1) other; return o.param1 == param1 && o.param2 == param2; }
@Override public boolean equals(Object other) { if (other == this) return true; if (!(other instanceof Branch)) return false; Branch<?, ?> o = (Branch<?, ?>) other; return o.left.equals(this.left) && o.right.equals(this.right); }
@Override public boolean equals(Object obj) { if (obj instanceof ProtectionSpecificHeader) { if (this.getClass().equals(obj.getClass())) { return data.equals(((ProtectionSpecificHeader) obj).data); } } return false; }
@Override public boolean equals(Object obj) { if (obj instanceof Version) { Version other = (Version) obj; return projectVersion.equals(other.projectVersion) && gitVersion.equals(other.gitVersion) && gitBranch.equals(other.gitBranch) && buildTimestamp == other.buildTimestamp; } return false; }
@Override public boolean equals(Object other) { if (other == this) return true; if (!(other instanceof Right)) return false; Right<?> o = (Right<?>) other; return o.error.equals(this.error); }
@Override public boolean equals(Object other) { if (other == this) return true; if (!(other instanceof Right)) return false; Right<?> o = (Right<?>) other; return o.value.equals(this.value); }
@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); }
@Override public boolean equals(Object other) { if (other == this) return true; if (!(other instanceof Layout)) return false; Layout o = (Layout) other; return unknownFields().equals(o.unknownFields()) && Internal.equals(x, o.x) && Internal.equals(y, o.y) && Internal.equals(width, o.width) && Internal.equals(height, o.height); }
@Override public boolean equals(Object other) { if (other == this) return true; if (!(other instanceof ShapeEntity)) return false; ShapeEntity o = (ShapeEntity) other; return unknownFields().equals(o.unknownFields()) && Internal.equals(type, o.type) && Internal.equals(styles, o.styles) && Internal.equals(transform, o.transform) && Internal.equals(shape, o.shape) && Internal.equals(rect, o.rect) && Internal.equals(ellipse, o.ellipse); }
@Override public boolean equals(Object other) { if (other == this) return true; if (!(other instanceof ShapeArgs)) return false; ShapeArgs o = (ShapeArgs) other; return unknownFields().equals(o.unknownFields()) && Internal.equals(d, o.d); }
@Override public boolean equals(Object o) { if (o == this) { return true; } if (o instanceof Fragments) { Fragments that = (Fragments) o; return this.antennaFields.equals(that.antennaFields); } return false; }
@Override public boolean equals(Object other) { if (other == this) return true; if (!(other instanceof EllipseArgs)) return false; EllipseArgs o = (EllipseArgs) other; return unknownFields().equals(o.unknownFields()) && Internal.equals(x, o.x) && Internal.equals(y, o.y) && Internal.equals(radiusX, o.radiusX) && Internal.equals(radiusY, o.radiusY); }
@Override public boolean equals(Object other) { if (other == this) return true; if (!(other instanceof RGBAColor)) return false; RGBAColor o = (RGBAColor) other; return unknownFields().equals(o.unknownFields()) && Internal.equals(r, o.r) && Internal.equals(g, o.g) && Internal.equals(b, o.b) && Internal.equals(a, o.a); }
@Override public boolean equals(Object other) { if (other == this) return true; if (!(other instanceof MovieEntity)) return false; MovieEntity o = (MovieEntity) other; return unknownFields().equals(o.unknownFields()) && Internal.equals(version, o.version) && Internal.equals(params, o.params) && images.equals(o.images) && sprites.equals(o.sprites); }
@Override public boolean equals(Object other) { if (other == this) return true; if (!(other instanceof SpriteEntity)) return false; SpriteEntity o = (SpriteEntity) other; return unknownFields().equals(o.unknownFields()) && Internal.equals(imageKey, o.imageKey) && frames.equals(o.frames); }
private org.antology.db.Node jsToNode(Object object) throws Exception { if (object instanceof ScriptObjectMirror) { ScriptObjectMirror mirror = (ScriptObjectMirror) object; if (mirror.isArray()) { List<org.antology.db.Node> list = new LinkedList<>(); for (int i = 0; i < mirror.size(); i++) { list.add(jsToNode(mirror.get(Integer.toString(i)))); } return new Node(Schema.Type.LIST, list); } else { Map<String, org.antology.db.Node> struct = new HashMap<>(); for (String key : mirror.getOwnKeys(false)) { java.lang.Object value = mirror.get(key); struct.put(key, jsToNode(value)); } return new Node(Schema.Type.STRUCT, struct); } } else if (object instanceof String) { return new Node(Schema.Type.STRING, object); } else if (object instanceof Integer) { return new Node(Schema.Type.INTEGER, object); } else if (object instanceof Double) { return new Node(Schema.Type.FLOAT, object); } else if (object instanceof Boolean) { return new Node(Schema.Type.BOOLEAN, object); } else { throw new Exception("Unknown type " + object.getClass().getName()); } }