public class

Transition

extends Object
java.lang.Object
   ↳ org.apache.helix.model.Transition

Class Overview

Defines a transition from one state to another

Summary

Public Constructors
Transition(State fromState, State toState)
Instantiate with a source and destination state
Transition(String fromState, String toState)
Instantiate with a source and destination state
Public Methods
boolean equals(Object that)
static Transition from(State fromState, State toState)
Create a new transition
String getFromState()
Get the source state
String getToState()
Get the destination state
State getTypedFromState()
Get the source state
State getTypedToState()
Get the destination state
int hashCode()
String toString()
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public Transition (State fromState, State toState)

Instantiate with a source and destination state

Parameters
fromState source name
toState destination name

public Transition (String fromState, String toState)

Instantiate with a source and destination state

Parameters
fromState source name
toState destination name

Public Methods

public boolean equals (Object that)

public static Transition from (State fromState, State toState)

Create a new transition

Parameters
fromState string source state
toState string destination state
Returns
  • Transition

public String getFromState ()

Get the source state

Returns
  • source state name

public String getToState ()

Get the destination state

Returns
  • destination state name

public State getTypedFromState ()

Get the source state

Returns
  • source state name

public State getTypedToState ()

Get the destination state

Returns
  • destination state name

public int hashCode ()

public String toString ()