C# Class Quartz.Collection.TreeSet

Inheritance: System.Collections.ArrayList, ISortedSet
显示文件 Open project: FelicePollano/Cron.NET Class Usage Examples

Public Methods

Method Description
Add ( object obj ) : bool

Adds a new element to the ArrayList if it is not already present and sorts the ArrayList.

AddAll ( ICollection c ) : bool

Adds all the elements of the specified collection that are not present to the list.

Contains ( object item ) : bool

Determines whether an element is in the the current TreeSetSupport collection. The IComparer defined for the current set will be used to make comparisons between the elements already inserted in the collection and the item specified.

First ( ) : object

Returns the first item in the set.

TailSet ( object limit ) : ISortedSet

Returns a portion of the list whose elements are greater than the limit object parameter.

TreeSet ( ) : System

Initializes a new instance of the TreeSet class.

TreeSet ( ICollection c ) : System

Initializes a new instance of the TreeSet class.

TreeSet ( IComparer c ) : System

Initializes a new instance of the TreeSet class.

UnmodifiableTreeSet ( ICollection collection ) : TreeSet

Unmodifiables the tree set.

Private Methods

Method Description
AddWithoutSorting ( object obj ) : bool

Method Details

Add() public method

Adds a new element to the ArrayList if it is not already present and sorts the ArrayList.
public Add ( object obj ) : bool
obj object Element to insert to the ArrayList.
return bool

AddAll() public method

Adds all the elements of the specified collection that are not present to the list.
public AddAll ( ICollection c ) : bool
c ICollection Collection where the new elements will be added
return bool

Contains() public method

Determines whether an element is in the the current TreeSetSupport collection. The IComparer defined for the current set will be used to make comparisons between the elements already inserted in the collection and the item specified.
public Contains ( object item ) : bool
item object The object to be locatet in the current collection.
return bool

First() public method

Returns the first item in the set.
public First ( ) : object
return object

TailSet() public method

Returns a portion of the list whose elements are greater than the limit object parameter.
public TailSet ( object limit ) : ISortedSet
limit object The start element of the portion to extract.
return ISortedSet

TreeSet() public method

Initializes a new instance of the TreeSet class.
public TreeSet ( ) : System
return System

TreeSet() public method

Initializes a new instance of the TreeSet class.
/// is .
public TreeSet ( ICollection c ) : System
c ICollection The whose elements are copied to the new list.
return System

TreeSet() public method

Initializes a new instance of the TreeSet class.
public TreeSet ( IComparer c ) : System
c IComparer The c.
return System

UnmodifiableTreeSet() public static method

Unmodifiables the tree set.
public static UnmodifiableTreeSet ( ICollection collection ) : TreeSet
collection ICollection The collection.
return TreeSet