public static < T1 , T2 > Pair < T1 , T2 > of ( T1 first , T2 second ) { return new Pair <> ( first , second ) ; }
Convenience function for creating a pair allowing the user to omit the type parameters .