Cisco Systems, Inc.

com.pcube.apps.engage.policy
Class CalendarArray

java.lang.Object
  extended by com.pcube.apps.engage.policy.CalendarArray
All Implemented Interfaces:
Formattable, java.io.Serializable, java.lang.Comparable

public class CalendarArray
extends java.lang.Object
implements java.io.Serializable, Formattable, java.lang.Comparable

See Also:
Serialized Form

Method Summary
 int compareTo(java.lang.Object o)
           
 TimeSlotMatrix createNewCalendar()
           
 void fromStream(java.io.BufferedReader in, Formatter f)
          Method fromStream
 TimeSlotMatrix get(int index)
           
 TimeSlotMatrix getByName(java.lang.String matrixName)
           
 TimeSlotMatrix getDefaultTimeSlotMatrix()
           
 java.lang.String[] getNames()
           
 int getNumberOfUsedEntries()
           
 int indexByName(java.lang.String matrixName)
           
 int indexOf(TimeSlotMatrix matrix)
           
 boolean isUsedByPackage(int index)
           
 java.util.Iterator iterator()
           
 void remove(int index)
           
 TimeSlotMatrix set(int index, TimeSlotMatrix matrix)
           
 int size()
           
 void toStream(java.io.PrintStream out, Formatter f)
          Method toStream
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

compareTo

public int compareTo(java.lang.Object o)
Specified by:
compareTo in interface java.lang.Comparable
See Also:
Comparable.compareTo(java.lang.Object)

createNewCalendar

public TimeSlotMatrix createNewCalendar()
Returns:

fromStream

public void fromStream(java.io.BufferedReader in,
                       Formatter f)
                throws ImportExportException
Description copied from interface: Formattable
Method fromStream

Specified by:
fromStream in interface Formattable
Throws:
ImportExportException
See Also:
Formattable.fromStream(java.io.BufferedReader, com.pcube.apps.engage.common.Formatter)

get

public TimeSlotMatrix get(int index)
Parameters:
index -
Returns:

getByName

public TimeSlotMatrix getByName(java.lang.String matrixName)

getDefaultTimeSlotMatrix

public TimeSlotMatrix getDefaultTimeSlotMatrix()
Returns:

getNames

public java.lang.String[] getNames()
Returns:

getNumberOfUsedEntries

public int getNumberOfUsedEntries()
Returns:

indexByName

public int indexByName(java.lang.String matrixName)
Parameters:
matrixName -
Returns:

indexOf

public int indexOf(TimeSlotMatrix matrix)
Parameters:
matrix -
Returns:

iterator

public java.util.Iterator iterator()
Returns:

remove

public void remove(int index)
Parameters:
index -

set

public TimeSlotMatrix set(int index,
                          TimeSlotMatrix matrix)
                   throws DuplicateItemException
Parameters:
index -
matrix -
Returns:
@throws DuplicateItemException
Throws:
DuplicateItemException

size

public int size()
Returns:

toStream

public void toStream(java.io.PrintStream out,
                     Formatter f)
Description copied from interface: Formattable
Method toStream

Specified by:
toStream in interface Formattable
See Also:
Formattable.toStream(java.io.PrintStream, com.pcube.apps.engage.common.Formatter)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
See Also:
Object.toString()

isUsedByPackage

public boolean isUsedByPackage(int index)

Cisco Systems, Inc.

Copyright © 2013 Cisco Systems, Inc. Confidential.