@Test public void testThatCopyMethodReturnsCopy() { Column column = new Column("id", bigint(), IDENTITY, AUTO_INCREMENT, NOT_NULL); Column copy = column.copy(); assertEquals(column, copy); assertFalse(column == copy); }
@Override public Column copy() { return new Column(name, type, sequence, defaultValue, hints.stream().toArray(Hint[]::new)); }
Column implements Copyable<Column> { @Override public Column copy() { return new Column(name, type, sequence, defaultValue, hints.stream().toArray(Hint[]::new)); } }
Column implements Copyable<Column> { @Override public Column copy() { return new Column(name, type, sequence, defaultValue, hints.stream().toArray(Hint[]::new)); } Column(String name, ColumnType type, Hint... hints);  Column(String name, ColumnType type, String defaultValue, Hint... hints);  Column(String name, ColumnType type, Sequence sequence, Hint... hints); private  Column(String name, ColumnType type, Sequence sequence, String defaultValueExpression, Hint... hints); }
Column implements Copyable<Column> { @Override public Column copy() { return new Column(name, type, sequence, defaultValue, hints.stream().toArray(Hint[]::new)); } Column(String name, ColumnType type, Hint... hints);  Column(String name, ColumnType type, String defaultValue, Hint... hints);  Column(String name, ColumnType type, Sequence sequence, Hint... hints); private  Column(String name, ColumnType type, Sequence sequence, String defaultValueExpression, Hint... hints); void modifyType(ColumnType newColumnType); void dropDefaultValue(); void modifyDefaultValue(String defaultValue); void modifyDefaultValue(Sequence sequence); boolean isIdentity(); boolean isAutoIncrement(); boolean isNotNull(); void addHint(Hint hint); void dropHint(Hint hint); Column rename(String newName); @Override Column copy(); @Override String toString(); }
Column implements Copyable<Column> { @Override public Column copy() { return new Column(name, type, sequence, defaultValue, hints.stream().toArray(Hint[]::new)); } Column(String name, ColumnType type, Hint... hints);  Column(String name, ColumnType type, String defaultValue, Hint... hints);  Column(String name, ColumnType type, Sequence sequence, Hint... hints); private  Column(String name, ColumnType type, Sequence sequence, String defaultValueExpression, Hint... hints); void modifyType(ColumnType newColumnType); void dropDefaultValue(); void modifyDefaultValue(String defaultValue); void modifyDefaultValue(Sequence sequence); boolean isIdentity(); boolean isAutoIncrement(); boolean isNotNull(); void addHint(Hint hint); void dropHint(Hint hint); Column rename(String newName); @Override Column copy(); @Override String toString();  }