@Test public void memberOrderMattersForEqualComparison() { StructureShape a = StructureShape.builder() .id("ns.foo#bar") .addMember("foo", ShapeId.from("ns.foo#bam")) .addMember("baz", ShapeId.from("ns.foo#bam")) .build(); StructureShape b = StructureShape.builder() .id("ns.foo#bar") .addMember("baz", ShapeId.from("ns.foo#bam")) .addMember("foo", ShapeId.from("ns.foo#bam")) .build(); assertThat(a, not(equalTo(b))); }
public static Builder builder() { return new Builder(); }
StructureShape extends NamedMembersShape implements ToSmithyBuilder<StructureShape> { public static Builder builder() { return new Builder(); } }
StructureShape extends NamedMembersShape implements ToSmithyBuilder<StructureShape> { public static Builder builder() { return new Builder(); } private  StructureShape(Builder builder); }
StructureShape extends NamedMembersShape implements ToSmithyBuilder<StructureShape> { public static Builder builder() { return new Builder(); } private  StructureShape(Builder builder); static Builder builder(); @Override Builder toBuilder(); @Override R accept(ShapeVisitor<R> cases); @Override Optional<StructureShape> asStructureShape(); }
StructureShape extends NamedMembersShape implements ToSmithyBuilder<StructureShape> { public static Builder builder() { return new Builder(); } private  StructureShape(Builder builder); static Builder builder(); @Override Builder toBuilder(); @Override R accept(ShapeVisitor<R> cases); @Override Optional<StructureShape> asStructureShape();  }