Class JavaVersions

java.lang.Object
org.apache.openjpa.lib.util.JavaVersions

public class JavaVersions extends Object
Utilities for dealing with different Java specification versions.
Author:
Abe White, Pinaki Poddar
  • Field Details

    • VERSION

      public static final int VERSION
      Java version; one of 2, 3, 4, 5, 6, 7, or later.
  • Constructor Details

    • JavaVersions

      public JavaVersions()
  • Method Details

    • getParameterizedTypes

      public static Class<?>[] getParameterizedTypes(Field f)
      Collects the parameterized type declarations for a given field.
    • getParameterizedTypes

      public static Class<?>[] getParameterizedTypes(Method meth)
      Collects the parameterized return type declarations for a given method.