java.lang.Object
org.apache.sis.util.Static
org.apache.sis.internal.geoapi.evolution.Interim

public final class Interim extends Static
Temporary methods used until a new major GeoAPI release provides the missing functionalities.
Since:
0.8
Version:
1.1
Author:
Martin Desruisseaux (Geomatys)
  • Method Details

    • getReturnType

      public static Class<?> getReturnType(Method method)
      Returns the return type of the given method, or the interim type if the method is annotated with InterimType.
      Parameters:
      method - the method from which to get the return type.
      Returns:
      the return type or the interim type.
    • getEnvelope

      public static org.opengis.geometry.Envelope getEnvelope(org.opengis.geometry.Geometry geometry)
      Invokes Geometry.getEnvelope() if that method exists.
      Parameters:
      geometry - the geometry from which to get the envelope.
      Returns:
      the geometry envelope, or null if none.