Код: Выделить всё
public class CollectionResponseDto {
private Collection value;
public CollectionResponseDto(Collection value) {
this.value = value;
}
public Collection getValue() {
return value;
}
public void setValue(Collection value) {
this.value = value;
}
}
Код: Выделить всё
Set dataLong = new HashSet();
CollectionResponseDto resultLong = new CollectionResponseDto(dataLong);
List dataString = new ArrayList();
CollectionResponseDto resultString = new CollectionResponseDto(dataString);
Код: Выделить всё
new CollectionResponseDto(dataLong)
Что я делаю не так?
Подробнее здесь: https://stackoverflow.com/questions/791 ... tion-class
Мобильная версия