public interface AccessibleByName extends AccessibleByIndex
By default, case is ignored when matching names. If multiple names only differ by their case, then the first one is chosen. You can force an exact match by double-quoting the name.
For example, if the data structure contains three values named
getString("foo")retrieves the first value (ignore case, first occurrence).
getString("\"foo\"")retrieves the second value (exact case).
getString("\"fOO\"")retrieves the third value (exact case).
getString("\"FOO\"")fails (exact case, no match).
In the driver, these data structures are always accessible by index as well.
|Modifier and Type||Method and Description|
Returns the first index where a given identifier appears (depending on the implementation, identifiers may appear multiple times).
Returns the CQL type of the value for the first occurrence of
int firstIndexOf(@NonNull String name)
IllegalArgumentException- if the name is invalid.
Copyright © 2017–2023. All rights reserved.