我有一个示例数据,如下所示: 1234 - some text here
1234 - some text here
1234 - some text here
1234 - some text here
1234 - some text here
1234 - some text here
1234 - some text here
1234 - some text here
1234 - some text here
1234 - some text here
1234 - so
例如,有一个重载的方法:
public void setBorder(Color color) { ... }
public void setBorder(String colorName) { ... }
public void setBorder(Image image) { ... }
public void setBorder(File imageFile) { ... }
但如果我想重载一个稍微不同的方法,就会有太多类似的方法:
public void setBorders(Color colorTop, Color colorRight, Color colorBottom, Co