/libcore/ojluni/src/main/java/java/time/temporal/ |
H A D | TemporalAccessor.java | 84 * These can be accessed via {@linkplain #query(TemporalQuery) queries} using 164 * @param field the field to query the range for, not null 260 * This queries this date-time using the specified query strategy object. 265 * Examples might be a query that checks if the date is the day before February 29th 268 * The most common query implementations are method references, such as 275 * if (query == TemporalQueries.zoneId() || 276 * query == TemporalQueries.chronology() || query == TemporalQueries.precision()) { 279 * return query.queryFrom(this); 284 * {@code TemporalAccessor.super.query(quer 308 query(TemporalQuery<R> query) argument [all...] |
/libcore/ojluni/src/main/java/java/time/chrono/ |
H A D | Era.java | 132 * If the field is a {@link ChronoField} then the query is implemented here. 160 * If the field is a {@link ChronoField} then the query is implemented here. 172 * @param field the field to query the range for, not null 190 * If the field is a {@link ChronoField} then the query is implemented here. 222 * If the field is a {@link ChronoField} then the query is implemented here. 249 * Queries this era using the specified query. 251 * This queries this era using the specified query strategy object. 253 * obtain the result. Read the documentation of the query to understand 258 * specified query passing {@code this} as the argument. 261 * @param query th 268 query(TemporalQuery<R> query) argument [all...] |
H A D | ChronoLocalDateTime.java | 157 * allowing it to be used as a query via method reference, {@code ChronoLocalDateTime::from}. 169 Chronology chrono = temporal.query(TemporalQueries.chronology()); 317 * Queries this date-time using the specified query. 319 * This queries this date-time using the specified query strategy object. 321 * obtain the result. Read the documentation of the query to understand 326 * specified query passing {@code this} as the argument. 329 * @param query the query to invoke, not null 330 * @return the query result, null may be returned (defined by the query) 336 query(TemporalQuery<R> query) argument [all...] |
H A D | ChronoLocalDate.java | 277 * allowing it to be used as a query via method reference, {@code ChronoLocalDate::from}. 289 Chronology chrono = temporal.query(TemporalQueries.chronology()); 488 * Queries this date using the specified query. 490 * This queries this date using the specified query strategy object. 492 * obtain the result. Read the documentation of the query to understand 497 * specified query passing {@code this} as the argument. 500 * @param query the query to invoke, not null 501 * @return the query result, null may be returned (defined by the query) 507 query(TemporalQuery<R> query) argument [all...] |
H A D | ChronoZonedDateTime.java | 158 * allowing it to be used as a query via method reference, {@code ChronoZonedDateTime::from}. 170 Chronology chrono = temporal.query(TemporalQueries.chronology()); 464 * Queries this date-time using the specified query. 466 * This queries this date-time using the specified query strategy object. 468 * obtain the result. Read the documentation of the query to understand 473 * specified query passing {@code this} as the argument. 476 * @param query the query to invoke, not null 477 * @return the query result, null may be returned (defined by the query) 483 query(TemporalQuery<R> query) argument [all...] |
/libcore/ojluni/src/main/java/java/time/format/ |
H A D | DateTimePrintContext.java | 132 Chronology temporalChrono = temporal.query(TemporalQueries.chronology()); 133 ZoneId temporalZone = temporal.query(TemporalQueries.zoneId()); 209 public <R> R query(TemporalQuery<R> query) { 210 if (query == TemporalQueries.chronology()) { 213 if (query == TemporalQueries.zoneId()) { 216 if (query == TemporalQueries.precision()) { 217 return temporal.query(query); 219 return query 279 getValue(TemporalQuery<R> query) argument [all...] |
H A D | Parsed.java | 210 public <R> R query(TemporalQuery<R> query) { argument 211 if (query == TemporalQueries.zoneId()) { 213 } else if (query == TemporalQueries.chronology()) { 215 } else if (query == TemporalQueries.localDate()) { 217 } else if (query == TemporalQueries.localTime()) { 219 } else if (query == TemporalQueries.zone() || query == TemporalQueries.offset()) { 220 return query.queryFrom(this); 221 } else if (query [all...] |
/libcore/ojluni/src/test/java/time/test/java/time/temporal/ |
H A D | TestDateTimeBuilderCombinations.java | 109 Class<?> query, Object expectedVal) { 150 if (query == LocalDate.class) { 152 assertEquals(parsed.query(LocalDate::from), expectedVal); 155 parsed.query(LocalDate::from); 105 test_derive(final TemporalField field1, final Number value1, final TemporalField field2, final Number value2, final TemporalField field3, final Number value3, final TemporalField field4, final Number value4, Class<?> query, Object expectedVal) argument
|
/libcore/luni/src/test/java/tests/java/sql/ |
H A D | SelectFunctionalityTest.java | 171 * from the table using parametric query 225 // TODO query wasn't executed due to "not supported" methods 497 private void func(String name, String query, int expected) { argument 501 ResultSet result = statement.executeQuery(query);
|
/libcore/dom/src/test/java/org/w3c/domts/ |
H A D | DOMTestInnerClass.java | 135 String query, String fragment, Boolean isAbsolute, 137 test.assertURIEquals(assertID, scheme, path, host, file, name, query, 133 assertURIEquals(String assertID, String scheme, String path, String host, String file, String name, String query, String fragment, Boolean isAbsolute, String actual) argument
|
H A D | DOMTestCase.java | 677 String query, 709 if (query != null) { 710 assertEquals(assertID, query, actualQuery); 670 assertURIEquals( String assertID, String scheme, String path, String host, String file, String name, String query, String fragment, Boolean isAbsolute, String actual) argument
|
/libcore/luni/src/test/java/tests/org/w3c/dom/ |
H A D | DOMTestCase.java | 103 String host, String file, String name, String query, 133 if (query != null) { 134 assertEquals(assertID, query, actualQuery); 102 assertURIEquals(String assertID, String scheme, String path, String host, String file, String name, String query, String fragment, Boolean isAbsolute, String actual) argument
|
/libcore/ojluni/src/main/java/java/net/ |
H A D | URLStreamHandler.java | 130 String query = u.getQuery(); 141 // FIX: should not assume query if opaque 142 // Strip off the query part 147 query = spec.substring(queryStart+1, limit); 258 query = null; 353 setURL(u, protocol, host, port, authority, userInfo, path, query, ref); 543 * @param query the query part for the URL. 552 String query, String ref) { 558 u.set(u.getProtocol(), host, port, authority, userInfo, path, query, re 550 setURL(URL u, String protocol, String host, int port, String authority, String userInfo, String path, String query, String ref) argument [all...] |
H A D | URL.java | 47 * such as a query to a database or to a search engine. More 185 * defined as {@code path[?query]} 191 * The query part of this URL. 193 private transient String query; field in class:URL 416 query = parts.getQuery(); 418 if (query != null) { 419 this.file = path + "?" + query; 457 * <scheme>://<authority><path>?<query>#<fragment> 459 * The reference is parsed into the scheme, authority, path, query and 461 * authority, and query component 716 set(String protocol, String host, int port, String authority, String userInfo, String path, String query, String ref) argument 1514 String path, query, ref; field in class:Parts [all...] |
/libcore/ojluni/src/main/java/java/time/ |
H A D | DayOfWeek.java | 181 * allowing it to be used as a query via method reference, {@code DayOfWeek::from}. 275 * @param field the field to query the range for, not null 387 * Queries this day-of-week using the specified query. 389 * This queries this day-of-week using the specified query strategy object. 391 * obtain the result. Read the documentation of the query to understand 396 * specified query passing {@code this} as the argument. 399 * @param query the query to invoke, not null 400 * @return the query result, null may be returned (defined by the query) 406 query(TemporalQuery<R> query) argument [all...] |
H A D | Month.java | 205 * allowing it to be used as a query via method reference, {@code Month::from}. 302 * @param field the field to query the range for, not null 544 * Queries this month-of-year using the specified query. 546 * This queries this month-of-year using the specified query strategy object. 548 * obtain the result. Read the documentation of the query to understand 553 * specified query passing {@code this} as the argument. 556 * @param query the query to invoke, not null 557 * @return the query result, null may be returned (defined by the query) 563 query(TemporalQuery<R> query) argument [all...] |
H A D | MonthDay.java | 106 * Related to this, {@code MonthDay} only provides access to query and set the fields 151 * This will query the {@link Clock#systemDefaultZone() system clock} in the default 166 * This will query the {@link Clock#system(ZoneId) system clock} to obtain the current month-day. 182 * This will query the specified clock to obtain the current month-day. 255 * allowing it to be used as a query via method reference, {@code MonthDay::from}. 326 * If the field is a {@link ChronoField} then the query is implemented here. 358 * If the field is a {@link ChronoField} then the query is implemented here. 368 * @param field the field to query the range for, not null 391 * If the field is a {@link ChronoField} then the query is implemented here. 421 * If the field is a {@link ChronoField} then the query i 586 query(TemporalQuery<R> query) argument [all...] |
H A D | ZoneOffset.java | 327 * The conversion uses the {@link TemporalQueries#offset()} query, which relies 331 * allowing it to be used as a query via method reference, {@code ZoneOffset::from}. 339 ZoneOffset offset = temporal.query(TemporalQueries.offset()); 510 * If the field is a {@link ChronoField} then the query is implemented here. 538 * If the field is a {@link ChronoField} then the query is implemented here. 548 * @param field the field to query the range for, not null 566 * If the field is a {@link ChronoField} then the query is implemented here. 600 * If the field is a {@link ChronoField} then the query is implemented here. 627 * Queries this offset using the specified query. 629 * This queries this offset using the specified query strateg 646 query(TemporalQuery<R> query) argument [all...] |
H A D | Instant.java | 258 * This will query the {@link Clock#systemUTC() system UTC clock} to 273 * This will query the specified clock to obtain the current time. 355 * allowing it to be used as a query via method reference, {@code Instant::from}. 432 * If the field is a {@link ChronoField} then the query is implemented here. 465 * If the unit is a {@link ChronoUnit} then the query is implemented here. 504 * If the field is a {@link ChronoField} then the query is implemented here. 514 * @param field the field to query the range for, not null 532 * If the field is a {@link ChronoField} then the query is implemented here. 572 * If the field is a {@link ChronoField} then the query is implemented here. 1030 * Queries this instant using the specified query 1049 query(TemporalQuery<R> query) argument [all...] |
H A D | Year.java | 161 * This will query the {@link Clock#systemDefaultZone() system clock} in the default 176 * This will query the {@link Clock#system(ZoneId) system clock} to obtain the current year. 192 * This will query the specified clock to obtain the current year. 237 * allowing it to be used as a query via method reference, {@code Year::from}. 344 * If the field is a {@link ChronoField} then the query is implemented here. 376 * If the unit is a {@link ChronoUnit} then the query is implemented here. 412 * If the field is a {@link ChronoField} then the query is implemented here. 422 * @param field the field to query the range for, not null 443 * If the field is a {@link ChronoField} then the query is implemented here. 473 * If the field is a {@link ChronoField} then the query i 816 query(TemporalQuery<R> query) argument [all...] |
/libcore/ojluni/src/test/java/time/tck/java/time/ |
H A D | TCKDayOfWeek.java | 214 // query(TemporalQuery) 216 @DataProvider(name="query") 229 @Test(dataProvider="query") 230 public <T> void test_query(TemporalAccessor temporal, TemporalQuery<T> query, T expected) { argument 231 assertEquals(temporal.query(query), expected); 234 @Test(dataProvider="query") 235 public <T> void test_queryFrom(TemporalAccessor temporal, TemporalQuery<T> query, T expected) { argument 236 assertEquals(query.queryFrom(temporal), expected); 241 DayOfWeek.FRIDAY.query(nul [all...] |
H A D | TCKMonth.java | 206 // query(TemporalQuery) 208 @DataProvider(name="query") 221 @Test(dataProvider="query") 222 public <T> void test_query(TemporalAccessor temporal, TemporalQuery<T> query, T expected) { argument 223 assertEquals(temporal.query(query), expected); 226 @Test(dataProvider="query") 227 public <T> void test_queryFrom(TemporalAccessor temporal, TemporalQuery<T> query, T expected) { argument 228 assertEquals(query.queryFrom(temporal), expected); 233 Month.JUNE.query(nul [all...] |
/libcore/luni/src/test/java/libcore/java/net/ |
H A D | OldURLStreamHandlerTest.java | 148 "user", "foo.c", "query", "ref"); 228 String query, 231 userInfo, path, query, ref); 221 setURL(URL u, String protocol, String host, int port, String authority, String userInfo, String path, String query, String ref) argument
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
H A D | URITest.java | 69 // no host, path, query or fragment 75 new URI("http://reg:istry?query"), 77 // with query 79 // empty authority, non empty path, empty query 92 // http with authority, query and fragment 154 "http://host/path?a query#frag", // space char in query, not 156 "http://host?query%ag", // invalid escape sequence in query, no 158 "http:///path?query 400 construct1(String scheme, String userinfo, String host, int port, String path, String query, String fragment) argument [all...] |
H A D | URLTest.java | 1093 String authority, String userInfo, String file, String query, 1096 (String) null, query, ref); 1092 setURL(URL u, String protocol, String host, int port, String authority, String userInfo, String file, String query, String ref) argument
|