com.microsoft.tfs.core.clients.workitem.fields
Interface ValuesCollection

All Superinterfaces:
java.lang.Iterable<java.lang.String>
All Known Subinterfaces:
AllowedValuesCollection

public interface ValuesCollection
extends java.lang.Iterable<java.lang.String>

Represents a list of valid values for a Field.

Since:
TEE-SDK-10.1

Method Summary
 boolean contains(java.lang.String value)
          Tests whether this collection contains the specified item.
 java.lang.String get(int index)
          Gets the item at the specified index.
 java.lang.String[] getValues()
           
 int indexOf(java.lang.String value)
          Gets the index of the specified item.
 java.util.Iterator<java.lang.String> iterator()
           
 int size()
           
 

Method Detail

iterator

java.util.Iterator<java.lang.String> iterator()
Specified by:
iterator in interface java.lang.Iterable<java.lang.String>
Returns:
an iterator for this collection

size

int size()
Returns:
the number of objects in this collection.

get

java.lang.String get(int index)
Gets the item at the specified index.

Parameters:
index - the index of the item to get
Returns:
the item at the specified index

indexOf

int indexOf(java.lang.String value)
Gets the index of the specified item.

Parameters:
value - the value of the item to get the index of
Returns:
the index of the item in the collection, or -1 if the collection does not contain the specified item

contains

boolean contains(java.lang.String value)
Tests whether this collection contains the specified item.

Parameters:
value - the item to find in this collection
Returns:
true if the collection contains the specified item, false if it does not

getValues

java.lang.String[] getValues()
Returns:
an array of the values in this collection.


© 2015 Microsoft. All rights reserved.