public static < CommonSuperType , First extends CommonSuperType , Second extends CommonSuperType > CommonSuperType [ ] toArray ( final Pair < First , Second > pair , final CommonSuperType [ ] target , final int offset ) { target [ offset ] = pair . getFirst ( ) ; target [ offset + 1 ] = pair . getSecond ( ) ; return target ; }
Write a pair into an array of the common super type of both components .