Interface Compatible


public interface Compatible
Compatibility layer.

Allows to use advanced functionality if the latest JDK version is present.

  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static class 
    Creates an implementation of Compatible suitable for the current environment.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final Compatible
     
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> boolean
    isRecord(Class<T> clazz)
    Tells whether the given class is a JDK 16+ record.
  • Field Details

  • Method Details

    • isRecord

      <T> boolean isRecord(Class<T> clazz)
      Tells whether the given class is a JDK 16+ record.