Package org.anasoid.jmc.core.wrapper.jmc
Class Variable
- java.lang.Object
-
- org.anasoid.jmc.core.wrapper.jmc.Variable
-
- All Implemented Interfaces:
java.io.Serializable
public class Variable extends java.lang.Object implements java.io.SerializableVariable to manage variable in Jmeter. this class will manage transformation from varible name to ${name}.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Variable(@NonNull java.lang.String name)name of the variable.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.util.List<Variable>asVariables(@NonNull java.lang.String... variables)get list of variable from arrays of names.static java.util.List<Variable>asVariables(@NonNull java.util.List<java.lang.String> variables)get list of variable from list of names.booleanequals(java.lang.Object o)java.lang.StringgetName()get name of variables.java.lang.StringgetValue()get value.inthashCode()java.lang.StringtoString()
-
-
-
Method Detail
-
asVariables
public static java.util.List<Variable> asVariables(@NonNull @NonNull java.util.List<java.lang.String> variables)
get list of variable from list of names.- Parameters:
variables- list of names.- Returns:
- List of variables.
-
asVariables
public static java.util.List<Variable> asVariables(@NonNull @NonNull java.lang.String... variables)
get list of variable from arrays of names.- Parameters:
variables- arrays of names.- Returns:
- List of variables.
-
getName
public java.lang.String getName()
get name of variables.
-
getValue
public java.lang.String getValue()
get value. the value is name decorated with ${...}.- Returns:
- value.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-