com.aspose.diagram

Class UserCollection

  • java.lang.Object
  • All Implemented Interfaces:
    java.lang.Iterable
    public class UserCollection 
    extends Collection

User collection.

Property Getters/Setters Summary
intgetCount()
Gets the number of elements actually contained in the collection.
Userget(intindex)
Gets the element at the specified index.
 
Method Summary
intadd(User item)
Add the User object in the collection.
voidclear()
Removes all elements from collection.
UsergetUser(intID)
Gets the element at the specified ID.
UsergetUser(java.lang.Stringname)
Gets the element at the specified ID.
booleanisExist(intindex)
Is exist item in the collection.
java.util.Iteratoriterator()
Supports a simple iteration over a nongeneric collection.
voidremove(User item)
Remove the User object from the collection.
 

    • Property Getters/Setters Detail

      • getCount

        public int getCount()
        
        Gets the number of elements actually contained in the collection.
      • get

        public User get(int index)
        
        Gets the element at the specified index.
        Parameters:
        index -
        Returns:
    • Method Detail

      • add

        public int add(User item)
        Add the User object in the collection.
        Returns:
      • remove

        public void remove(User item)
        Remove the User object from the collection.
      • getUser

        public User getUser(java.lang.String name)
        Gets the element at the specified ID.
        Parameters:
        name -
        Returns:
      • getUser

        public User getUser(int ID)
        Gets the element at the specified ID.
        Parameters:
        ID -
        Returns:
      • iterator

        public java.util.Iterator iterator()
        Supports a simple iteration over a nongeneric collection.
        Returns:
      • isExist

        public boolean isExist(int index)
        Is exist item in the collection.
        Parameters:
        index - index of element.
        Returns:
      • clear

        public void clear()
        Removes all elements from collection.