Couple<Integer> (int compSize, int containerSize) { if (compSize >= containerSize) { return Couple.of(0, compSize); } else { final int position = containerSize / 2 - compSize / 2; return Couple.of(position, compSize); } }