Package cdc.issues
Record Class FormalParamsImpl
java.lang.Object
java.lang.Record
cdc.issues.FormalParamsImpl
- All Implemented Interfaces:
FormalParams
-
Nested Class Summary
Nested classes/interfaces inherited from interface cdc.issues.FormalParams
FormalParams.Builder -
Field Summary
Fields inherited from interface cdc.issues.FormalParams
NO_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionFormalParamsImpl(Map<String, FormalParam> map) Creates an instance of aFormalParamsImplrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.getDescription(String name) getNames()final inthashCode()Returns a hash code value for this object.booleanisEmpty()map()Returns the value of themaprecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
FormalParamsImpl
FormalParamsImpl(Map<String, FormalParam> map) Creates an instance of aFormalParamsImplrecord class.- Parameters:
map- the value for themaprecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceFormalParams- Returns:
trueif there are no parameters.
-
getNames
- Specified by:
getNamesin interfaceFormalParams- Returns:
- The parameter names.
-
getSortedNames
- Specified by:
getSortedNamesin interfaceFormalParams- Returns:
- The sorted parameter names.
-
getSortedParams
- Specified by:
getSortedParamsin interfaceFormalParams- Returns:
- The sorted parameters.
-
getParam
- Specified by:
getParamin interfaceFormalParams- Parameters:
name- The parameter name.- Returns:
- The parameter named
name.
-
getDescription
- Specified by:
getDescriptionin interfaceFormalParams- Parameters:
name- The parameter name.- Returns:
- The description of parameter named
name.
-
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
map
Returns the value of themaprecord component.- Returns:
- the value of the
maprecord component
-