Top Description Fields Constructors Methods
jakarta.validation.metadata

public final Enum MethodType

extends Enum<MethodType>
Class Inheritance

Represents the type of a method: getter or non getter.
Author
Emmanuel Bernard
Since
1.1

Field Summary

Modifier and TypeField and Description
public static final MethodType
GETTER

A method following the getter pattern.

public static final MethodType
NON_GETTER

A method that does not follow the getter pattern.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static MethodType
public static MethodType[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

GETTERback to summary
public static final MethodType GETTER

A method following the getter pattern. A getter according to the JavaBeans specification is a method whose:

  • name starts with get, has a return type but no parameter
  • name starts with is, has a return type and is returning boolean.
NON_GETTERback to summary
public static final MethodType NON_GETTER

A method that does not follow the getter pattern. A getter according to the JavaBeans specification is a method whose:

  • name starts with get, has a return type but no parameter
  • name starts with is, has a return type and is returning boolean.

Constructor Detail

MethodTypeback to summary
private MethodType()

Method Detail

valueOfback to summary
public static MethodType valueOf(String name)
valuesback to summary
public static MethodType[] values()