Skip to content

Annotation Interface Entry

Javadoc 27 generates this reference during each site build from the exported packages and the annotation processor. The Java guide shows the API in use.

Names the entry that a record component reads through Spec.reader(Class, MethodHandles.Lookup). Without it, a component reads the entry of its own name, spelled exactly as the component is.
record Shop(@Entry("n_jobs") long nJobs, List<long[]> machine) {}
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Returns the name of the entry.
  • Element Details

    • value

      String value
      Returns the name of the entry.
      Returns:
      the name of the entry