org.jmythapi.protocol.response.impl
Class FreeInputsList
java.lang.Object
   org.jmythapi.impl.AData<E>
org.jmythapi.impl.AData<E>
       org.jmythapi.protocol.response.impl.AMythResponse<FreeInputsList.Props>
org.jmythapi.protocol.response.impl.AMythResponse<FreeInputsList.Props>
           org.jmythapi.protocol.response.impl.FreeInputsList
org.jmythapi.protocol.response.impl.FreeInputsList
- All Implemented Interfaces: 
- Cloneable, Iterable<IInputInfoFree>, IPropertyAware<FreeInputsList.Props>, IVersionable, ISendable, IFreeInputList, IMythResponse<FreeInputsList.Props>
- public class FreeInputsList 
- extends AMythResponse<FreeInputsList.Props>- implements Iterable<IInputInfoFree>, IFreeInputList
- Since:
- 37
 
 
 
 
 
 
| Methods inherited from class org.jmythapi.impl.AData | 
| clone, equals, getPropertyClass, getPropertyCount, getPropertyMap, getPropertyValue, getPropertyValue, getPropertyValueObject, getPropertyValueObject, getPropertyValues, getVersionNr, hashCode, init, postProcessArguments, setPropertyValue, setPropertyValue, setPropertyValueObject | 
 
 
 
 
EMPTY_LIST
public static final String EMPTY_LIST
- See Also:
- Constant Field Values
FreeInputsList
public FreeInputsList(IMythPacket packet)
checkSize
protected void checkSize(List<String> responseArgs)
                  throws IllegalArgumentException
- The size of the response array must be a multiple of IInputInfoFree.Props.values().size().
 There is no size value at the beginning of the response list (e.g. as available for program-lists).
 
- 
- Overrides:
- checkSizein class- AMythResponse<FreeInputsList.Props>
 
- 
- Parameters:
- responseArgs- the response-argument-list
- Throws:
- IllegalArgumentException- if expected arguments are missing.
 
asList
public List<IInputInfoFree> asList()
- Description copied from interface: IFreeInputList
- Gets the free-inputs as list
 
- 
- Specified by:
- asListin interface- IFreeInputList
 
- 
- Returns:
- the input devices as list
 
get
public IInputInfoFree get(int idx)
- Description copied from interface: IFreeInputList
- Gets the input at the given position.
 
- 
- Specified by:
- getin interface- IFreeInputList
 
- 
- Parameters:
- idx- the input index
- Returns:
- the input
 
size
public int size()
- Description copied from interface: IFreeInputList
- The size of this list
 
- 
- Specified by:
- sizein interface- IFreeInputList
 
- 
- Returns:
- the size of this list
 
isEmpty
public boolean isEmpty()
- Description copied from interface: IFreeInputList
- Checks if this list is empty.
 
- 
- Specified by:
- isEmptyin interface- IFreeInputList
 
- 
- Returns:
- trueif the list is empty.
 
iterator
public Iterator<IInputInfoFree> iterator()
- 
- Specified by:
- iteratorin interface- Iterable<IInputInfoFree>
 
- 
 
toString
public String toString()
- Description copied from class: AData
- Returns the content of this data object as a formatted string. E.g.- 
 <0>TOTAL_RAM_MB: 1002 | <1>FREE_RAM_MB: 474 | <2>TOTAL_VM_MB: 853 | <3>FREE_VM_MB: 853
  - 
 
- 
- Overrides:
- toStringin class- AData<FreeInputsList.Props>
 
- 
 
Copyright © 2008-2013. All Rights Reserved.