com.sshtools.j2ssh.util

Class OpenClosedState

Implemented Interfaces:
Serializable

public class OpenClosedState
extends State

Version:
$Revision: 1.13 $
Author:
$author$

Field Summary

static int
CLOSED
static int
OPEN

Fields inherited from class com.sshtools.j2ssh.util.State

state

Constructor Summary

OpenClosedState(int initial)
Creates a new OpenClosedState object.

Method Summary

boolean
isValidState(int state)

Methods inherited from class com.sshtools.j2ssh.util.State

breakWaiting, getValue, isValidState, setValue, waitForState, waitForState, waitForStateUpdate

Field Details

CLOSED

public static final int CLOSED
Field Value:
2

OPEN

public static final int OPEN
Field Value:
1

Constructor Details

OpenClosedState

public OpenClosedState(int initial)
Creates a new OpenClosedState object.
Parameters:
initial -

Method Details

isValidState

public boolean isValidState(int state)
Overrides:
isValidState in interface State
Parameters:
state -
Returns:

Copyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.