Package cdc.issues
Record Class ParamsImpl
java.lang.Object
java.lang.Record
cdc.issues.ParamsImpl
- All Implemented Interfaces:
NameValueMap,Params,Comparable<Params>
-
Nested Class Summary
Nested classes/interfaces inherited from interface cdc.issues.Params
Params.Builder -
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionParamsImpl(Map<String, String> map) Creates an instance of aParamsImplrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintfinal booleanIndicates whether some other object is "equal to" this one.getNames()Collection<? extends NameValue>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.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface cdc.issues.NameValueMap
containsName
-
Constructor Details
-
ParamsImpl
Creates an instance of aParamsImplrecord class.- Parameters:
map- the value for themaprecord component
-
-
Method Details
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceNameValueMap- Returns:
trueif this map is empty.
-
getNames
- Specified by:
getNamesin interfaceNameValueMap- Returns:
- The set of names.
-
getSortedNames
- Specified by:
getSortedNamesin interfaceNameValueMap- Returns:
- The sorted names.
-
getValue
- Specified by:
getValuein interfaceNameValueMap- Parameters:
name- The name.- Returns:
- The value associated to
nameornull.
-
getValue
- Specified by:
getValuein interfaceNameValueMap- Parameters:
name- The name.def- The default value to return.- Returns:
- The value associated to
nameordef.
-
getParams
-
getSortedParams
- Specified by:
getSortedParamsin interfaceParams- Returns:
- A list of
Paramsorted using their name.
-
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. -
getNameValues
- Specified by:
getNameValuesin interfaceNameValueMap- Returns:
- A collection of
NameValue.
-
getSortedNameValues
- Specified by:
getSortedNameValuesin interfaceNameValueMap- Returns:
- A list of
NameValuesorted using their name.
-
compareTo
- Specified by:
compareToin interfaceComparable<Params>
-
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
-