Top Fields Constructors Methods
org.junit.jupiter.params

pack-priv final Record DefaultParameterInfo

extends Record
implements ParameterInfo
Class Inheritance
All Implemented Interfaces
org.junit.jupiter.params.support.ParameterInfo, org.junit.jupiter.params.ParameterInfo
Annotations
@SuppressWarnings:removal
Record Components
declarations:ParameterDeclarations 
arguments:ArgumentsAccessor 
Imports
org.junit.jupiter.api.extension.ExtensionContext, org.junit.jupiter.params.aggregator.ArgumentsAccessor, org.junit.jupiter.params.support.ParameterDeclarations

References Deprecated

ParameterInfo is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

Since
5.13

Field Summary

Modifier and TypeField and Description
private final ArgumentsAccessor
arguments

Record Component accessed by arguments().

private final ParameterDeclarations
declarations

Record Component accessed by declarations().

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public ArgumentsAccessor
arguments()

Record Component getter of arguments.

public ParameterDeclarations
declarations()

Record Component getter of declarations.

public final boolean
equals(Object o)

Implements abstract java.lang.Record.equals.

Indicates whether some other object is "equal to" this one.

public ArgumentsAccessor
getArguments()

Implements org.junit.jupiter.params.ParameterInfo.getArguments.

Returns the accessor to the arguments of the current invocation.

public ParameterDeclarations
getDeclarations()

Implements org.junit.jupiter.params.ParameterInfo.getDeclarations.

Returns the declarations of all indexed parameters.

public final int
hashCode()

Implements abstract java.lang.Record.hashCode.

Returns a hash code value for the record.

pack-priv void
public final String
toString()

Implements abstract java.lang.Record.toString.

Returns a string representation of the record.

Field Detail

argumentsback to summary
private final ArgumentsAccessor arguments

Record Component accessed by arguments().

declarationsback to summary
private final ParameterDeclarations declarations

Record Component accessed by declarations().

Constructor Detail

DefaultParameterInfoback to summary
pack-priv DefaultParameterInfo(ParameterDeclarations declarations, ArgumentsAccessor arguments)

Method Detail

argumentsback to summary
public ArgumentsAccessor arguments()

Record Component getter of arguments.

declarationsback to summary
public ParameterDeclarations declarations()

Record Component getter of declarations.

equalsback to summary
public final boolean equals(Object o)

Implements abstract java.lang.Record.equals.

Doc from java.lang.Record.equals.

Indicates whether some other object is "equal to" this one. In addition to the general contract of Object.equals, record classes must further obey the invariant that when a record instance is "copied" by passing the result of the record component accessor methods to the canonical constructor, as follows:

    R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
getArgumentsback to summary
public ArgumentsAccessor getArguments()

Implements org.junit.jupiter.params.ParameterInfo.getArguments.

Doc from org.junit.jupiter.params.ParameterInfo.getArguments.

Returns the accessor to the arguments of the current invocation.

Annotations
@Override
getDeclarationsback to summary
public ParameterDeclarations getDeclarations()

Implements org.junit.jupiter.params.ParameterInfo.getDeclarations.

Doc from org.junit.jupiter.params.ParameterInfo.getDeclarations.

Returns the declarations of all indexed parameters.

Annotations
@Override
hashCodeback to summary
public final int hashCode()

Implements abstract java.lang.Record.hashCode.

Doc from java.lang.Record.hashCode.

Returns a hash code value for the record. Obeys the general contract of Object.hashCode. For records, hashing behavior is constrained by the refined contract of Record.equals, so that any two records created from the same components must have the same hash code.

storeback to summary
pack-priv void store(ExtensionContext context)
toStringback to summary
public final String toString()

Implements abstract java.lang.Record.toString.

Doc from java.lang.Record.toString.

Returns a string representation of the record. In accordance with the general contract of Object#toString(), the toString method returns a string that "textually represents" this record. The result should be a concise but informative representation that is easy for a person to read.

In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves.