fm.liveswitch.StreamDirectionHelper Class Reference

Class containing utility methods to manipulate fm.liveswitch.StreamDirection. More...

Public Member Functions

 StreamDirectionHelper ()
 

Static Public Member Functions

static fm.liveswitch.StreamDirection directionFromString (String directionString)
 Converts string representations of stream directions to fm.liveswitch.StreamDirection. More...
 
static String directionToString (fm.liveswitch.StreamDirection direction)
 Obtains the string representation of fm.liveswitch.StreamDirection. More...
 
static boolean isReceiveDisabled (fm.liveswitch.StreamDirection direction)
 Checks the receive flag. More...
 
static boolean isReceiveDisabled (String directionString)
 Checks the receive flag. More...
 
static boolean isSendDisabled (fm.liveswitch.StreamDirection direction)
 Checks the send flag. More...
 
static boolean isSendDisabled (String directionString)
 Checks the send flag. More...
 
static fm.liveswitch.StreamDirection setReceiveDisabled (fm.liveswitch.StreamDirection direction, boolean disabled)
 Sets the receive flag. More...
 
static String setReceiveDisabled (String directionString, boolean disabled)
 Sets the receive flag. More...
 
static fm.liveswitch.StreamDirection setSendDisabled (fm.liveswitch.StreamDirection direction, boolean disabled)
 Sets the send flag. More...
 
static String setSendDisabled (String directionString, boolean disabled)
 Sets the send flag. More...
 
static fm.liveswitch.StreamDirection toggleReceive (fm.liveswitch.StreamDirection direction)
 Toggles the receive flag. More...
 
static String toggleReceive (String directionString)
 Toggles the receive flag. More...
 
static fm.liveswitch.StreamDirection toggleSend (fm.liveswitch.StreamDirection direction)
 Toggles the send flag. More...
 
static String toggleSend (String directionString)
 Toggles the send flag. More...
 

Detailed Description

Class containing utility methods to manipulate fm.liveswitch.StreamDirection.

Constructor & Destructor Documentation

◆ StreamDirectionHelper()

fm.liveswitch.StreamDirectionHelper.StreamDirectionHelper ( )

Member Function Documentation

◆ directionFromString()

static fm.liveswitch.StreamDirection fm.liveswitch.StreamDirectionHelper.directionFromString ( String  directionString)
static

Converts string representations of stream directions to fm.liveswitch.StreamDirection.

Parameters
directionStringThe direction string.
Returns
The direction.

◆ directionToString()

static String fm.liveswitch.StreamDirectionHelper.directionToString ( fm.liveswitch.StreamDirection  direction)
static

Obtains the string representation of fm.liveswitch.StreamDirection.

Parameters
directionThe direction.
Returns
The direction string.

◆ isReceiveDisabled() [1/2]

static boolean fm.liveswitch.StreamDirectionHelper.isReceiveDisabled ( fm.liveswitch.StreamDirection  direction)
static

Checks the receive flag.

Parameters
directionThe direction.
Returns
The receive flag.

◆ isReceiveDisabled() [2/2]

static boolean fm.liveswitch.StreamDirectionHelper.isReceiveDisabled ( String  directionString)
static

Checks the receive flag.

Parameters
directionStringThe direction string.
Returns
The receive flag.

◆ isSendDisabled() [1/2]

static boolean fm.liveswitch.StreamDirectionHelper.isSendDisabled ( fm.liveswitch.StreamDirection  direction)
static

Checks the send flag.

Parameters
directionThe direction.
Returns
The send flag.

◆ isSendDisabled() [2/2]

static boolean fm.liveswitch.StreamDirectionHelper.isSendDisabled ( String  directionString)
static

Checks the send flag.

Parameters
directionStringThe direction string.
Returns
The send flag.

◆ setReceiveDisabled() [1/2]

static fm.liveswitch.StreamDirection fm.liveswitch.StreamDirectionHelper.setReceiveDisabled ( fm.liveswitch.StreamDirection  direction,
boolean  disabled 
)
static

Sets the receive flag.

Parameters
directionThe direction.
disabledWhether to disable the receive flag.
Returns
The new direction.

◆ setReceiveDisabled() [2/2]

static String fm.liveswitch.StreamDirectionHelper.setReceiveDisabled ( String  directionString,
boolean  disabled 
)
static

Sets the receive flag.

Parameters
directionStringThe direction string.
disabledWhether to disable the receive flag.
Returns
The new direction.

◆ setSendDisabled() [1/2]

static fm.liveswitch.StreamDirection fm.liveswitch.StreamDirectionHelper.setSendDisabled ( fm.liveswitch.StreamDirection  direction,
boolean  disabled 
)
static

Sets the send flag.

Parameters
directionThe direction.
disabledWhether to disable the send flag.
Returns
The new direction.

◆ setSendDisabled() [2/2]

static String fm.liveswitch.StreamDirectionHelper.setSendDisabled ( String  directionString,
boolean  disabled 
)
static

Sets the send flag.

Parameters
directionStringThe direction string.
disabledWhether to disable the send flag.
Returns
The new direction.

◆ toggleReceive() [1/2]

static fm.liveswitch.StreamDirection fm.liveswitch.StreamDirectionHelper.toggleReceive ( fm.liveswitch.StreamDirection  direction)
static

Toggles the receive flag.

Parameters
directionThe direction.
Returns
The new direction.

◆ toggleReceive() [2/2]

static String fm.liveswitch.StreamDirectionHelper.toggleReceive ( String  directionString)
static

Toggles the receive flag.

Parameters
directionStringThe direction string.
Returns
The new direction.

◆ toggleSend() [1/2]

static fm.liveswitch.StreamDirection fm.liveswitch.StreamDirectionHelper.toggleSend ( fm.liveswitch.StreamDirection  direction)
static

Toggles the send flag.

Parameters
directionThe direction.
Returns
The new direction.

◆ toggleSend() [2/2]

static String fm.liveswitch.StreamDirectionHelper.toggleSend ( String  directionString)
static

Toggles the send flag.

Parameters
directionStringThe direction string.
Returns
The new direction.