Package joynr.types
Class CustomParameter
- java.lang.Object
-
- joynr.types.CustomParameter
-
- All Implemented Interfaces:
JoynrType,Serializable
public class CustomParameter extends Object implements Serializable, JoynrType
a custom parameter consisting of a name and a value- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static intMAJOR_VERSIONstatic intMINOR_VERSION
-
Constructor Summary
Constructors Constructor Description CustomParameter()Default ConstructorCustomParameter(String name, String value)Parameterized constructorCustomParameter(CustomParameter customParameterObj)Copy constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)Check for equalityStringgetName()Gets NameStringgetValue()Gets ValueinthashCode()Calculate code for hashing based on member contentsvoidsetName(String name)Sets NamevoidsetValue(String value)Sets ValueStringtoString()Stringifies the class
-
-
-
Field Detail
-
MAJOR_VERSION
public static final int MAJOR_VERSION
- See Also:
- Constant Field Values
-
MINOR_VERSION
public static final int MINOR_VERSION
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CustomParameter
public CustomParameter()
Default Constructor
-
CustomParameter
public CustomParameter(CustomParameter customParameterObj)
Copy constructor- Parameters:
customParameterObj- reference to the object to be copied
-
-
Method Detail
-
getName
public String getName()
Gets Name- Returns:
- the name of the custom parameter
-
setName
public void setName(String name)
Sets Name- Parameters:
name- the name of the custom parameter
-
getValue
public String getValue()
Gets Value- Returns:
- the value of the custom parameter
-
setValue
public void setValue(String value)
Sets Value- Parameters:
value- the value of the custom parameter
-
toString
public String toString()
Stringifies the class
-
equals
public boolean equals(Object obj)
Check for equality
-
-