@Test public void testConstructZeroLevel() { IllegalArgumentException e = assertThrows(IllegalArgumentException.class, () -> { new StructureField(name, 0, dataType); }); assertThat(e.getMessage()).isEqualTo("Level cannot be less than 1: " + Integer.toString(0)); }
@Override public String toString() { return ToStringBuilder.reflectionToString(this); }
StructureField extends SimpleDataTyped implements HierarchicalStructureMember { @Override public String toString() { return ToStringBuilder.reflectionToString(this); } }
StructureField extends SimpleDataTyped implements HierarchicalStructureMember { @Override public String toString() { return ToStringBuilder.reflectionToString(this); } StructureField(final String name, final int level, final DataType dataType); }
StructureField extends SimpleDataTyped implements HierarchicalStructureMember { @Override public String toString() { return ToStringBuilder.reflectionToString(this); } StructureField(final String name, final int level, final DataType dataType); @Override boolean equals(final Object obj); @Override int getLevel(); @Override String getName(); @Override int hashCode(); @Override String toString(); }
StructureField extends SimpleDataTyped implements HierarchicalStructureMember { @Override public String toString() { return ToStringBuilder.reflectionToString(this); } StructureField(final String name, final int level, final DataType dataType); @Override boolean equals(final Object obj); @Override int getLevel(); @Override String getName(); @Override int hashCode(); @Override String toString();  }