Chart FX for Java 6.5

SoftwareFX.ChartFX.Statistical
Class StudiesCollection

java.lang.Object
  extended by SoftwareFX.ChartFX.Statistical.StudiesCollection
All Implemented Interfaces:
java.lang.Iterable, java.util.Collection, java.util.Enumeration, java.util.List

public final class StudiesCollection
extends java.lang.Object
implements java.util.List, java.util.Enumeration

Provides access to the StudiesCollection object.

This class is used to control the analysis studies applied to a statistical chart instance. Many of the supported class members are standard List, Collection and Enumeration members allowing developers to add, remove, clear, etc., studies to the Statistical Extension.


Constructor Summary
StudiesCollection()
           
 
Method Summary
 void add(int index, java.lang.Object element)
          Used to add a study or a group of studies to your statistical object.
 void add(int index, Study element)
          Used to add a study or a group of studies to your statistical object.
 boolean add(java.lang.Object element)
          Used to add a study or a group of studies to your statistical object.
 boolean add(Study element)
          Used to add a study or a group of studies to your statistical object.
 boolean addAll(java.util.Collection elements)
          Adds all of the elements in the specified collection to the StudiesCollection collection.
 boolean addAll(int index, java.util.Collection elements)
          Adds all of the elements in the specified collection to the StudiesCollection collection.
 Study addAnalysis(int analysis)
          Adds an Analysis study to the Studies Collection of the Statistical object.
 Study addAnalysisMulti(int analysis)
          Adds an AnalysisMulti study to the Studies Collection of the Statistical object.
 StudyFormula addDistributionFormula(int distribution)
          Adds a DistributionFormula study to the Studies Collection of the Statistical object.
 void addStudyGroup(int group)
          Adds a StudyGroup to the Studies Collection of the Statistical object.
 StudyTest addTest(int test)
          Adds a Test study the Studies Collection of the Statistical object.
 StudyTest addTestMulti(int test)
          Adds a TestMulti study the Studies Collection of the Statistical object.
 StudyCustom addTitle(java.lang.String text)
          Used to add a StudyCustom object to the Studies collection.
 void clear()
          Removes all objects from the Studies collection.
 boolean contains(java.lang.Object element)
          Determines whether the StudyCollection contains a specific element.
 boolean contains(Study element)
          Determines whether the StudyCollection contains a specific element.
 boolean containsAll(java.util.Collection elements)
          Returns true if the StudiesCollection collection contains all of the elements in the specified collection.
 java.util.Enumeration elements()
          Returns an enumeration of the values in the StudiesCollection .
 boolean equals(java.lang.Object element)
          Compares the specified object with this collection for equality.
 boolean equals(StudiesCollection element)
          Compares the specified object with this collection for equality.
 Study find(int studyType, int id)
          Returns a study object when located in the Studies Collection.
 java.lang.Object get(int index)
          Returns the element at the specified position in the StudiesCollection.
 Study getItem(int n)
          Returns a selected item in the StudiesCollection.
 int hashCode()
          Returns the hash code value for this collection.
 boolean hasMoreElements()
          Tests if this enumeration contains more elements.
 int indexOf(java.lang.Object element)
          Searches for the specified Object and returns the zero-based index of the first occurrence within the entire StudiesCollection.
 int indexOf(Study element)
          Searches for the specified Object and returns the zero-based index of the first occurrence within the entire StudiesCollection.
 boolean isEmpty()
          Returns true if this collection contains no elements.
 java.util.Iterator iterator()
          Returns an iterator over the elements in this collection.
 int lastIndexOf(java.lang.Object element)
          Returns the index in the StudiesCollection of the last occurrence of the specified element, or -1 if this list does not contain this element.
 int lastIndexOf(Study element)
          Returns the index in the StudiesCollection of the last occurrence of the specified element, or -1 if this list does not contain this element.
 java.util.ListIterator listIterator()
          Returns a list iterator of the elements in this collection.
 java.util.ListIterator listIterator(int index)
          Returns a list iterator of the elements in this collection.
 java.lang.Object nextElement()
          Returns the next element of this enumeration if this enumeration object has at least one more element to provide.
 java.lang.Object remove(int index)
          Removes the first occurrence of a specific object from the Collection.
 boolean remove(java.lang.Object element)
          Removes the first occurrence of a specific object from the Collection.
 boolean remove(Study element)
          Removes the first occurrence of a specific object from the Collection.
 boolean removeAll(java.util.Collection elements)
          Removes all of the elements in the specified collection from the StudiesCollection collection.
 boolean retainAll(java.util.Collection elements)
          Retains only the elements in the StudiesCollection collection that are contained in the specified collection.
 java.lang.Object set(int index, java.lang.Object element)
          Replaces the element at the specified position in the StudiesCollection collection with the specified element.
 Study set(int index, Study element)
          Replaces the element at the specified position in the StudiesCollection collection with the specified element.
 int size()
          Returns the number of elements in this collection.
 java.util.List subList(int fromIndex, int toIndex)
          Returns a view of the portion of this list between the specified fromIndex, inclusive, and toIndex, exclusive.
 java.lang.Object[] toArray()
          Returns an array containing all of the elements in this collection in proper sequence.
 java.lang.Object[] toArray(java.lang.Object[] obj)
          Returns an array containing all of the elements in this collection in proper sequence.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StudiesCollection

public StudiesCollection()
Method Detail

add

public boolean add(java.lang.Object element)

Used to add a study or a group of studies to your statistical object.

Remarks:
  • If Count already equals the capacity, the capacity of the list is doubled by automatically reallocating the internal array and copying the existing elements to the new array before the new element is added.

  • If Count is less than the capacity, this method is an O(1) operation. If the capacity needs to be increased to accommodate the new element, this method becomes an O(n) operation, where n is Count.

  • Specified by:
    add in interface java.util.Collection
    Specified by:
    add in interface java.util.List
    Parameters:
    element -
    See Also:
    getItem(int), addTitle(java.lang.String), clear(), contains(java.lang.Object), find(int, int), remove(java.lang.Object)

    add

    public void add(int index,
                    java.lang.Object element)

    Used to add a study or a group of studies to your statistical object.

    Remarks:
  • If Count already equals the capacity, the capacity of the list is doubled by automatically reallocating the internal array and copying the existing elements to the new array before the new element is added.

  • If Count is less than the capacity, this method is an O(1) operation. If the capacity needs to be increased to accommodate the new element, this method becomes an O(n) operation, where n is Count.

  • Specified by:
    add in interface java.util.List
    Parameters:
    index -
    element -
    See Also:
    getItem(int), addTitle(java.lang.String), clear(), contains(java.lang.Object), find(int, int), remove(java.lang.Object)

    add

    public boolean add(Study element)

    Used to add a study or a group of studies to your statistical object.

    Remarks:
  • If Count already equals the capacity, the capacity of the list is doubled by automatically reallocating the internal array and copying the existing elements to the new array before the new element is added.

  • If Count is less than the capacity, this method is an O(1) operation. If the capacity needs to be increased to accommodate the new element, this method becomes an O(n) operation, where n is Count.

  • Parameters:
    element -
    See Also:
    getItem(int), addTitle(java.lang.String), clear(), contains(java.lang.Object), find(int, int), remove(java.lang.Object)

    add

    public void add(int index,
                    Study element)

    Used to add a study or a group of studies to your statistical object.

    Remarks:
  • If Count already equals the capacity, the capacity of the list is doubled by automatically reallocating the internal array and copying the existing elements to the new array before the new element is added.

  • If Count is less than the capacity, this method is an O(1) operation. If the capacity needs to be increased to accommodate the new element, this method becomes an O(n) operation, where n is Count.

  • Parameters:
    index -
    element -
    See Also:
    getItem(int), addTitle(java.lang.String), clear(), contains(java.lang.Object), find(int, int), remove(java.lang.Object)

    addAll

    public boolean addAll(java.util.Collection elements)

    Adds all of the elements in the specified collection to the StudiesCollection collection.

    Specified by:
    addAll in interface java.util.Collection
    Specified by:
    addAll in interface java.util.List
    Parameters:
    elements - Elements to be inserted into this collection.

    addAll

    public boolean addAll(int index,
                          java.util.Collection elements)

    Adds all of the elements in the specified collection to the StudiesCollection collection.

    Specified by:
    addAll in interface java.util.List
    Parameters:
    index - The index of the item to add to the StudiesCollection collection.
    elements - Elements to be inserted into this collection.

    addAnalysis

    public Study addAnalysis(int analysis)

    Adds an Analysis study to the Studies Collection of the Statistical object.

    Parameters:
    analysis - Analysis study to add.

    Parameter Values:
    The available values for analysis are:

    ValueDescription
    Analysis.NData size (n).
    Analysis.MINMinumum value.
    Analysis.MAXMaximum value.
    Analysis.SUMSum of all values.
    Analysis.MEDIANThe middle value in an array of values.
    Analysis.MEANAverage of all values.
    Analysis.MODEA measure of central tendency that is the value that occurs most frequently in a group of values.
    Analysis.VARIANCEA measure of dispersion for a random variable or group of numbers.
    Analysis.STANDARD_DEVIATIONThe square root of the variance.
    Analysis.COEFFICIENT_OF_VARIATIONThe standard deviation divided by the mean.
    Analysis.STANDARD_ERRORThe estimated standard deviation for a sample statistic which is also the standard deviation of a sampling distribution of means. The statistical bridge that connects the sample and the population and forms on of the bases of inferential statistics. (Standard Error for Mean)
    Analysis.LOWER_QUARTILEThe median of the lower half of a set of values.
    Analysis.UPPER_QUARTILEThe median of the upper half of a set of values.
    Analysis.IQRInterquartile Range.
    Analysis.SKEWNESSThe degree of asymmetry of a distribution.
    Analysis.RANGEThe covariance of two features measures their tendency to vary together, i.e., to co-vary. The covariance is the average of the products of the deviations of feature values from their means.
    Analysis.PEARSON_CORRELATION_COEFFICIENTPearson Product Moment Correlation Coefficient.
    Analysis.LINEAR_REGRESSION_MLinear Regression slope m (y = m.x + b).
    Analysis.LINEAR_REGRESSION_BLinear Regression displacement b (y = m.x + b).
    Analysis.COEFFICIENT_OF_DETERMINATIONCoefficient of Determiniation (SSR/SST).
    Analysis.STANDARD_ERROR_OF_ESTIMATEA measure of the accuracy of predictions made with a regression line.
    Analysis.SSRSum of Squares Due to Regression.
    Analysis.SSESum of Squares Due to Error.
    Analysis.SSTTotal Sum of Squares.
    Analysis.MSRMean Square Due to Regression.
    Analysis.MSEMean Square Due to Error.
    Analysis.LINEAR_REGRESSION_Tt Test statistic for significance in Simple Linear Regression.
    Analysis.LINEAR_REGRESSION_FF Test statistic for significance in Simple Linear Regression.
    Analysis.REGRESSION_LINELinear Regression Study. A line calculated in regression analysis that is usd to estimate the relation between two quantities (the independent variable and dependent variable).
    Analysis.ZSCORESz-Score zones. Displays zones of size Standard Deviation from the mean.
    Analysis.ERROR_BARSError bars are a graphic that visually represents the confidence interval around the mean value of the item.
    Analysis.RANGERange (Max - Min).
    Analysis.KURTOISThe degree of peakedness of a distribution, defined as a normalized form of the fourth central moment of a distribution.
    Analysis.LOWESSLocally Weighted Scatter plot Smoothing.
    Analysis.SIGMA_33*Sigma. Can Be displayed in the chart as a color zone.
    Analysis.SIGMA_22*Sigma. Can Be displayed in the chart as a color zone.
    Analysis.SIGMA_1Sigma. Calculated by the appropriate gallery type or supplied by you through the Sigma property (Calculator Class). Can be displayed in the chart as a color zone.
    Analysis.USLUpper Specification Limit. Set by the through the Usl property (Calculator Class). Can be displayed in the chart as a constant line.
    Analysis.LSLLower Specification Limit. Set by the through the Lsl property (Calculator Class). Can be displayed in the chart as a constant line.
    Analysis.PPKProcess Performance Index (Ppk).
    Analysis.PPProcess Performance (Pp).
    Analysis.CPKProcess Capability Index (Cpk).
    Analysis.CPProcess Capability (Cp).
    Analysis.WECOWestern Electric Company Rules (WECO). This analysis will contain 1 if all the rules are met and 0 if not.


    addAnalysisMulti

    public Study addAnalysisMulti(int analysis)

    Adds an AnalysisMulti study to the Studies Collection of the Statistical object.

    Parameters:
    analysis - AnalysisMulti study to add.

    Parameter Values:
    The available values for analysis are:

    ValueDescription
    AnalysisMulti.EQUAL_VARIANCES_ZEqual Variancez Z.
    AnalysisMulti.POOLED_ESTIMATORPooled Estimator.
    AnalysisMulti.SAME_VARIANCES_TSame variances T.
    AnalysisMulti.SAME_VARIANCES_DFSame variances degrees of freedom.
    AnalysisMulti.DIFFERENT_VARIANCES_TDifferent variances T.
    AnalysisMulti.DIFFERENT_VARIANCES_DFDifferent variances degrees of freedom.
    AnalysisMulti.MATCHED_SAMPLES_TMatched samples T.
    AnalysisMulti.MATCHED_SAMPLES_DFMatched samples degrees of freedom.
    AnalysisMulti.VARIACE_RATIOThe ratio of two independent estimates of a common variance.
    AnalysisMulti.DFNUMERATORDegrees of freedom numerator.
    AnalysisMulti.DFDENOMINATORDegrees of freedom denominator.
    AnalysisMulti.ANOVA_MSTRANOVA - mean square due to treatments.
    AnalysisMulti.ANOVA_SSTRANOVA - sum of squares due to treatments.
    AnalysisMulti.ANOVA_SSEANOVA - sum of squares due to error.
    AnalysisMulti.ANOVA_SSTANOVA - total sum of squares.
    AnalysisMulti.ANOVA_MSEANOVA - mean square due to error.
    AnalysisMulti.ANOVA_DFNUMERATORANOVA - degrees of freedom numerator.
    AnalysisMulti.ANOVA_DFDENOMINATORANOVA - degrees of freedom denominator.
    AnalysisMulti.ANOVA_DFTOTALANOVA - degrees of freedom total.
    AnalysisMulti.ANOVA_FANOVA - F test.
    AnalysisMulti.AVERAGE_RANGEAverage range.
    AnalysisMulti.OVERALL_MEANOverall mean.
    AnalysisMulti.SAMPLE_SIZESample size.
    AnalysisMulti.OVERALL_MINOverall min.
    AnalysisMulti.OVERALL_MAXOverall max.


    addDistributionFormula

    public StudyFormula addDistributionFormula(int distribution)

    Adds a DistributionFormula study to the Studies Collection of the Statistical object.

    Parameters:
    distribution - DistributionFormula study to add.

    Parameter Values:
    The available values for distribution are:

    ValueDescription
    DistributionFormula.NORMALNormal Distribution.
    DistributionFormula.TT Distribution.
    DistributionFormula.TF Distribution.
    DistributionFormula.CHI_SQUAREChi-Square Distribution.
    DistributionFormula.CUMULATIVE_NORMALCumulative Normal Distribution.
    DistributionFormula.CUMULATIVE_TCumulative T Distribution.
    DistributionFormula.CUMULATIVE_FCumulative F Distribution.
    DistributionFormula.CUMULATIVE_CHI_SQUARECumulative Chi-Square Distribution.
    DistributionFormula.INVERSE_CUMULATIVE_NORMALInverse Cumulative Normal Distribution.
    DistributionFormula.INVERSE_CUMULATIVE_TInverse Cumulative T Distribution.
    DistributionFormula.INVERSE_CUMULATIVE_FInverse Cumulative F Distribution.
    DistributionFormula.INVERSE_CUMULATIVE_CHI_SQUAREInverse Cumulative Chi-Square Distribution.
    DistributionFormula.CUSTOMCustom Distribution.


    addStudyGroup

    public void addStudyGroup(int group)

    Adds a StudyGroup to the Studies Collection of the Statistical object.

    Parameters:
    group - StudyGroup to add.

    Parameter Values:
    The available values for group are:

    ValueDescription
    StudyGroup.CENTRAL_TENDENCY_MEANCentral Tendency Mean study.
    StudyGroup.CENTRAL_TENDENCY_MEDIANCentral Tendency Median study.
    StudyGroup.XYCORRELATIONXY Correlation study.
    StudyGroup.TWO_POPULATIONSTwo Populations study.
    StudyGroup.MATCHED_POPULATIONSMatched Populations study.
    StudyGroup.ANOVAAnalysis of Variance study.
    StudyGroup.SPCSPC study.


    addTest

    public StudyTest addTest(int test)

    Adds a Test study the Studies Collection of the Statistical object.

    Parameters:
    test - Test study to add.

    Parameter Values:
    The available values for test are:

    ValueDescription
    Test.REGRESSION_TTESTRegression T Test.
    Test.REGRESSION_FTESTRegression F Test.
    Test.WECOWeco Test.


    addTestMulti

    public StudyTest addTestMulti(int test)

    Adds a TestMulti study the Studies Collection of the Statistical object.

    Parameters:
    test - TestMulti study to add.

    Parameter Values:
    The available values for test are:

    ValueDescription
    TestMulti.TTEST_MEANST Test for Means.
    TestMulti.TTEST_EQUAL_VARIANCEST Test for Equal Variances.
    TestMulti.TTEST_DIFFERENT_VARIANCEST Test for Different Variances.
    TestMulti.TTEST_MATCHEDT Test for Matched value.
    TestMulti.FTEST_EQUALF Test for Equal to a value.
    TestMulti.FTEST_GREATERF Test for Greater than a value.
    TestMulti.ANOVA_FAnalysis of Variance F Test.


    addTitle

    public StudyCustom addTitle(java.lang.String text)

    Used to add a StudyCustom object to the Studies collection.

    Remarks:
  • The add(java.lang.Object) Method is used to add other study types to the Studies Collection.

  • This method returns a StudyCustom object which may be customized using the members of the StudyCustom class.

  • Parameters:
    text - Title for the StudyCustom object to add.
    See Also:
    getItem(int), add(java.lang.Object), clear(), contains(java.lang.Object), find(int, int), remove(java.lang.Object), StudyCustom

    clear

    public void clear()

    Removes all objects from the Studies collection.

    Remarks:
  • The count is set to zero when the Studies collection is cleared.

  • Specified by:
    clear in interface java.util.Collection
    Specified by:
    clear in interface java.util.List
    See Also:
    getItem(int), add(java.lang.Object), addTitle(java.lang.String), contains(java.lang.Object), find(int, int), remove(java.lang.Object)

    contains

    public boolean contains(java.lang.Object element)

    Determines whether the StudyCollection contains a specific element.

    Remarks:
  • This method returns true if the CollectionBase contains the specified value; otherwise, false.

  • This method performs a linear search. On average, this is an O(n/2) operation, where n is Count. The longest search is an O(n) operation.

  • Specified by:
    contains in interface java.util.Collection
    Specified by:
    contains in interface java.util.List
    Parameters:
    element -
    See Also:
    getItem(int), add(java.lang.Object), addTitle(java.lang.String), find(int, int), remove(java.lang.Object)

    contains

    public boolean contains(Study element)

    Determines whether the StudyCollection contains a specific element.

    Remarks:
  • This method returns true if the CollectionBase contains the specified value; otherwise, false.

  • This method performs a linear search. On average, this is an O(n/2) operation, where n is Count. The longest search is an O(n) operation.

  • Parameters:
    element -
    See Also:
    getItem(int), add(java.lang.Object), addTitle(java.lang.String), find(int, int), remove(java.lang.Object)

    containsAll

    public boolean containsAll(java.util.Collection elements)

    Returns true if the StudiesCollection collection contains all of the elements in the specified collection.

    Specified by:
    containsAll in interface java.util.Collection
    Specified by:
    containsAll in interface java.util.List
    Parameters:
    elements - Collection to be checked for containment in this collection.

    elements

    public java.util.Enumeration elements()

    Returns an enumeration of the values in the StudiesCollection . Use the Enumeration methods on the returned object to fetch the elements sequentially.


    equals

    public boolean equals(java.lang.Object element)

    Compares the specified object with this collection for equality.

    Specified by:
    equals in interface java.util.Collection
    Specified by:
    equals in interface java.util.List
    Overrides:
    equals in class java.lang.Object
    Parameters:
    element - Object to be compared for equality with this collection.

    equals

    public boolean equals(StudiesCollection element)

    Compares the specified object with this collection for equality.

    Parameters:
    element - Object to be compared for equality with this collection.

    find

    public Study find(int studyType,
                      int id)

    Returns a study object when located in the Studies Collection.

    Remarks:
  • The contains(java.lang.Object) method allows you to determine if a selected study exists in a StudyCollection instance.

  • Parameters:
    studyType - Study to find.
    id - Index to start search.

    Parameter Values:
    The available values for studyType are:

    ValueDescription
    StudyType.ANALYSISCalculations applied to a single data series.
    StudyType.TESTTest applied to a single data series.
    StudyType.ANALYSIS_MULTICalculations applied to multiple data series.
    StudyType.TEST_MULTITest applied to multiple data series.
    StudyType.FORMULAFormula calculations.
    StudyType.CUSTOMCustom calculations.

    See Also:
    getItem(int), add(java.lang.Object), addTitle(java.lang.String), clear(), contains(java.lang.Object), find(int, int), remove(java.lang.Object)

    get

    public java.lang.Object get(int index)

    Returns the element at the specified position in the StudiesCollection.

    Specified by:
    get in interface java.util.List
    Parameters:
    index - Index of element to return.

    getItem

    public Study getItem(int n)

    Returns a selected item in the StudiesCollection.

    Remarks:
  • This property exposes the members of the Study class, please see that class for more information regarding the members.

  • See Also:
    Study

    hashCode

    public int hashCode()

    Returns the hash code value for this collection.

    Specified by:
    hashCode in interface java.util.Collection
    Specified by:
    hashCode in interface java.util.List
    Overrides:
    hashCode in class java.lang.Object

    hasMoreElements

    public boolean hasMoreElements()

    Tests if this enumeration contains more elements.

    Specified by:
    hasMoreElements in interface java.util.Enumeration

    indexOf

    public int indexOf(java.lang.Object element)

    Searches for the specified Object and returns the zero-based index of the first occurrence within the entire StudiesCollection.

    Remarks:
  • This method performs a linear search. On average, this is an O(n/2) operation, where n is Count. The longest search is an O(n) operation.

  • Specified by:
    indexOf in interface java.util.List
    Parameters:
    element -
    See Also:
    getItem(int), add(java.lang.Object), addTitle(java.lang.String), contains(java.lang.Object), find(int, int), remove(java.lang.Object)

    indexOf

    public int indexOf(Study element)

    Searches for the specified Object and returns the zero-based index of the first occurrence within the entire StudiesCollection.

    Remarks:
  • This method performs a linear search. On average, this is an O(n/2) operation, where n is Count. The longest search is an O(n) operation.

  • Parameters:
    element -
    See Also:
    getItem(int), add(java.lang.Object), addTitle(java.lang.String), contains(java.lang.Object), find(int, int), remove(java.lang.Object)

    isEmpty

    public boolean isEmpty()

    Returns true if this collection contains no elements.

    Specified by:
    isEmpty in interface java.util.Collection
    Specified by:
    isEmpty in interface java.util.List

    iterator

    public java.util.Iterator iterator()

    Returns an iterator over the elements in this collection.

    Specified by:
    iterator in interface java.lang.Iterable
    Specified by:
    iterator in interface java.util.Collection
    Specified by:
    iterator in interface java.util.List

    lastIndexOf

    public int lastIndexOf(java.lang.Object element)

    Returns the index in the StudiesCollection of the last occurrence of the specified element, or -1 if this list does not contain this element.

    Specified by:
    lastIndexOf in interface java.util.List
    Parameters:
    element - Element to search for.

    lastIndexOf

    public int lastIndexOf(Study element)

    Returns the index in the StudiesCollection of the last occurrence of the specified element, or -1 if this list does not contain this element.

    Parameters:
    element - Element to search for.

    listIterator

    public java.util.ListIterator listIterator()

    Returns a list iterator of the elements in this collection.

    Specified by:
    listIterator in interface java.util.List

    listIterator

    public java.util.ListIterator listIterator(int index)

    Returns a list iterator of the elements in this collection.

    Specified by:
    listIterator in interface java.util.List
    Parameters:
    index -

    nextElement

    public java.lang.Object nextElement()

    Returns the next element of this enumeration if this enumeration object has at least one more element to provide.

    Specified by:
    nextElement in interface java.util.Enumeration

    remove

    public boolean remove(java.lang.Object element)

    Removes the first occurrence of a specific object from the Collection.

    Remarks:
  • This method performs a linear search; therefore, the average execution time is proportional to Count. That is, this method is an O(n) operation, where n is Count.

  • Specified by:
    remove in interface java.util.Collection
    Specified by:
    remove in interface java.util.List
    Parameters:
    element -
    See Also:
    getItem(int), add(java.lang.Object), addTitle(java.lang.String), contains(java.lang.Object), find(int, int), indexOf(java.lang.Object)

    remove

    public java.lang.Object remove(int index)

    Removes the first occurrence of a specific object from the Collection.

    Remarks:
  • This method performs a linear search; therefore, the average execution time is proportional to Count. That is, this method is an O(n) operation, where n is Count.

  • Specified by:
    remove in interface java.util.List
    Parameters:
    index -
    See Also:
    getItem(int), add(java.lang.Object), addTitle(java.lang.String), contains(java.lang.Object), find(int, int), indexOf(java.lang.Object)

    remove

    public boolean remove(Study element)

    Removes the first occurrence of a specific object from the Collection.

    Remarks:
  • This method performs a linear search; therefore, the average execution time is proportional to Count. That is, this method is an O(n) operation, where n is Count.

  • Parameters:
    element -
    See Also:
    getItem(int), add(java.lang.Object), addTitle(java.lang.String), contains(java.lang.Object), find(int, int), indexOf(java.lang.Object)

    removeAll

    public boolean removeAll(java.util.Collection elements)

    Removes all of the elements in the specified collection from the StudiesCollection collection.

    Specified by:
    removeAll in interface java.util.Collection
    Specified by:
    removeAll in interface java.util.List
    Parameters:
    elements - Elements to be removed from this collection.

    retainAll

    public boolean retainAll(java.util.Collection elements)

    Retains only the elements in the StudiesCollection collection that are contained in the specified collection.

    Specified by:
    retainAll in interface java.util.Collection
    Specified by:
    retainAll in interface java.util.List
    Parameters:
    elements - Elements to be retained in this collection.

    set

    public java.lang.Object set(int index,
                                java.lang.Object element)

    Replaces the element at the specified position in the StudiesCollection collection with the specified element.

    Specified by:
    set in interface java.util.List
    Parameters:
    index - The index of the item to add to the StudiesCollection collection.
    element - The item to add to the StudiesCollection collection

    set

    public Study set(int index,
                     Study element)

    Replaces the element at the specified position in the StudiesCollection collection with the specified element.

    Parameters:
    index - The index of the item to add to the StudiesCollection collection.
    element - The item to add to the StudiesCollection collection

    size

    public int size()

    Returns the number of elements in this collection.

    Specified by:
    size in interface java.util.Collection
    Specified by:
    size in interface java.util.List

    subList

    public java.util.List subList(int fromIndex,
                                  int toIndex)

    Returns a view of the portion of this list between the specified fromIndex, inclusive, and toIndex, exclusive.

    Specified by:
    subList in interface java.util.List
    Parameters:
    fromIndex - Low endpoint (inclusive) of the subList.
    toIndex - High endpoint (exclusive) of the subList.

    toArray

    public java.lang.Object[] toArray()

    Returns an array containing all of the elements in this collection in proper sequence.

    Specified by:
    toArray in interface java.util.Collection
    Specified by:
    toArray in interface java.util.List

    toArray

    public java.lang.Object[] toArray(java.lang.Object[] obj)

    Returns an array containing all of the elements in this collection in proper sequence.

    Specified by:
    toArray in interface java.util.Collection
    Specified by:
    toArray in interface java.util.List

    http://www.softwarefx.com

    2007 Software FX, Inc. All Rights Reserved. Chart FX is a registered trademark of Software FX, Inc
    All other names are trademarks or registered trademarks of their respective owners.