indexOf"
From Documentation
(Created page with "{{ZUMLReferencePageHeader}} <source lang="java"> BigDecimal decimal(Object value); </source> :i.e., <javadoc method="toDecimal(java.lang.Object)">org.zkoss.xel.fn.CommonFns</ja...") |
m |
||
Line 2: | Line 2: | ||
<source lang="java"> | <source lang="java"> | ||
− | + | int indexOf(Object value, Object element); | |
</source> | </source> | ||
− | :i.e., <javadoc method=" | + | :i.e., <javadoc method="indexOf(java.lang.Object, java.lang.Object)">org.zkoss.xel.fn.CommonFns</javadoc> |
− | + | Returns the index within the value of the first occurrence of the specified element. | |
'''Parameters:''' | '''Parameters:''' | ||
− | * value - the value to | + | * value - the value to test. If it is an instance of String, String.indexOf() is called. If it is a collection or an array, all of its elements are examined one-by-one. If it is a map, Map.keySet() will be examined one-by-one. |
+ | * element - the element to test. | ||
=Version History= | =Version History= | ||
Line 17: | Line 18: | ||
! Version !! Date !! Content | ! Version !! Date !! Content | ||
|- | |- | ||
− | | | + | | 5.0.7 |
− | | | + | | March, 2011 |
− | | | + | | This method was introduced |
|} | |} | ||
{{ZUMLReferencePageFooter}} | {{ZUMLReferencePageFooter}} |
Latest revision as of 08:14, 8 March 2011
int indexOf(Object value, Object element);
Returns the index within the value of the first occurrence of the specified element.
Parameters:
- value - the value to test. If it is an instance of String, String.indexOf() is called. If it is a collection or an array, all of its elements are examined one-by-one. If it is a map, Map.keySet() will be examined one-by-one.
- element - the element to test.
Version History
Version | Date | Content |
---|---|---|
5.0.7 | March, 2011 | This method was introduced |