public static < F , S > Pair < F , S > of ( F first , S second ) { if ( first == null || second == null ) { throw new IllegalArgumentException ( "Pair.of requires non null values." ) ; } return new Pair < F , S > ( first , second ) ; }
Creates a pair object