public class ActivityType
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Represents an activity type.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
name
The name of this activity.
|
private java.lang.String |
version
The version of this activity.
|
Constructor and Description |
---|
ActivityType() |
Modifier and Type | Method and Description |
---|---|
ActivityType |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getName()
The name of this activity.
|
java.lang.String |
getVersion()
The version of this activity.
|
int |
hashCode() |
void |
setName(java.lang.String name)
The name of this activity.
|
void |
setVersion(java.lang.String version)
The version of this activity.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ActivityType |
withName(java.lang.String name)
The name of this activity.
|
ActivityType |
withVersion(java.lang.String version)
The version of this activity.
|
private java.lang.String name
The name of this activity.
private java.lang.String version
The version of this activity.
public void setName(java.lang.String name)
The name of this activity.
name
- The name of this activity. public java.lang.String getName()
The name of this activity.
public ActivityType withName(java.lang.String name)
The name of this activity.
name
- The name of this activity. public void setVersion(java.lang.String version)
The version of this activity.
version
- The version of this activity. public java.lang.String getVersion()
The version of this activity.
public ActivityType withVersion(java.lang.String version)
The version of this activity.
version
- The version of this activity. public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public ActivityType clone()
clone
in class java.lang.Object