public static String listToString(List<Size> sizes){
  ArrayList<Integer> flatSizes=new ArrayList<>();
  for (  Size s : sizes) {
    flatSizes.add(s.width());
    flatSizes.add(s.height());
  }
  return TextUtils.join(LIST_DELIMITER,flatSizes);
}

public static String listToString ( List < Size > sizes ) { ArrayList < Integer > flatSizes = new ArrayList < > ( ) ; for ( Size s : sizes ) { flatSizes . add ( s . width ( ) ) ; flatSizes . add ( s . height ( ) ) ; } return TextUtils . join ( LIST_DELIMITER , flatSizes ) ; }
encode list of this class as comma - separated list of integers .
