Package com.winnovative_software
Class NameValuePairsCollection
java.lang.Object
com.winnovative_software.NameValuePairsCollection
Represents a collection of
NameValuePair
objects-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdds a name value pair to collectionint
count()
Gets the number of pairs in collectiongetByIndex
(int index) Gets the name value pair at the given index in collectionGets the name value pair having a given name
-
Constructor Details
-
NameValuePairsCollection
public NameValuePairsCollection()
-
-
Method Details
-
add
Adds a name value pair to collection- Parameters:
name
- the pair namevalue
- the pair value- Returns:
- the added pair
-
count
public int count()Gets the number of pairs in collection- Returns:
- the number of pair in collection
-
getByIndex
Gets the name value pair at the given index in collection- Parameters:
index
- the pair index- Returns:
- the name value pair at the given index in collection or throws an exception if the index is out of bounds
- Throws:
Exception
- an exception is thrown if the index is out of bounds
-
getByName
Gets the name value pair having a given name- Parameters:
name
- the pair name- Returns:
- the name value pair having a given name or null if there is not any pair with the given name
- Throws:
Exception
- an exception is thrown if the index is out of bounds
-