jpos.profile
Class DefaultPropInfoList

java.lang.Object
  |
  +--jpos.profile.DefaultPropInfoList
All Implemented Interfaces:
PropInfoList

class DefaultPropInfoList
extends java.lang.Object
implements PropInfoList

Defines a simple list of PropInfo objects

Since:
1.3 (SF 2K meeting)
Author:
E. Michael Maximilien (maxim@us.ibm.com)

Inner Class Summary
(package private)  class DefaultPropInfoList.DefaultIterator
          Simple interface to iterate through the list
 
Inner classes inherited from class jpos.profile.PropInfoList
PropInfoList.Iterator
 
Constructor Summary
DefaultPropInfoList()
          Default ctor
 
Method Summary
 void add(PropInfo propInfo)
          Adds a new PropInfo to this list
 boolean contains(PropInfo propInfo)
           
 int getSize()
           
 boolean isEmpty()
           
 PropInfoList.Iterator iterator()
           
 void remove(PropInfo propInfo)
          Removes the PropInfo to this list
 void removeAll()
          Removes all PropInfo in this list
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultPropInfoList

public DefaultPropInfoList()
Default ctor
Method Detail

getSize

public int getSize()
Specified by:
getSize in interface PropInfoList
Returns:
the current size of this list

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface PropInfoList
Returns:
true if this list is empty

add

public void add(PropInfo propInfo)
Adds a new PropInfo to this list
Specified by:
add in interface PropInfoList
Parameters:
propInfo - the propInfo to add

remove

public void remove(PropInfo propInfo)
Removes the PropInfo to this list
Specified by:
remove in interface PropInfoList
Parameters:
propInfo - the propInfo to remove

removeAll

public void removeAll()
Removes all PropInfo in this list
Specified by:
removeAll in interface PropInfoList

contains

public boolean contains(PropInfo propInfo)
Specified by:
contains in interface PropInfoList
Parameters:
propInfo - the propInfo
Returns:
true if the PropInfo is already in the list

iterator

public PropInfoList.Iterator iterator()
Specified by:
iterator in interface PropInfoList
Returns:
an PropInfoList.Iterator object for this list


This API and code belongs to the JavaPOS committee please see LISCENCE file for details