/libcore/support/src/test/java/tests/util/ |
H A D | Pair.java | 25 * @param <S> type of the second value. 31 private Pair(F first, S second) { argument 33 mSecond = second; 40 * @param second second value or {@code null}. 42 public static <F, S> Pair<F, S> of(F first, S second) { argument 43 return new Pair<F, S>(first, second); 56 * Gets the second value from this pair.
|
/libcore/ojluni/src/main/java/java/sql/ |
H A D | Time.java | 42 * given values for the hour, minute, and second. 52 * @param second 0 to 59 58 public Time(int hour, int minute, int second) { argument 59 super(70, 0, 1, hour, minute, second); 93 int second; 106 second = Integer.parseInt(s.substring(secondColon+1)); 111 return new Time(hour, minute, second); 122 int second = super.getSeconds(); 137 if (second < 10) { 138 secondString = "0" + second; [all...] |
H A D | Timestamp.java | 81 * @param second 0 to 59 88 int hour, int minute, int second, int nano) { 89 super(year, month, date, hour, minute, second); 180 int second; 245 second = 257 second = Integer.parseInt(time_s.substring(secondColon+1)); 263 return new Timestamp(year - 1900, month - 1, day, hour, minute, second, a_nanos); 281 int second = super.getSeconds(); 321 if (second < 10) { 322 secondString = "0" + second; 87 Timestamp(int year, int month, int date, int hour, int minute, int second, int nano) argument [all...] |
/libcore/ojluni/src/test/java/util/stream/boottest/java/util/stream/ |
H A D | StreamReuseTest.java | 42 Function<S, U> second, 48 U sr = second.apply(stream); 66 U sr = second.apply(stream); 39 assertSecondFails( D data, Function<S, T> first, Function<S, U> second, Class<? extends Throwable> exception, String text) argument
|
/libcore/luni/src/main/java/javax/xml/datatype/ |
H A D | DatatypeFactory.java | 148 * Gregorian year, month, day, hour, minute, and second components defined in Section 5.5.3.2 of [ISO 8601], respectively. 150 * year, month, day, hour, minute, and second. 177 * Gregorian year, month, day, hour, minute, and second components defined in Section 5.5.3.2 of [ISO 8601], respectively. 179 * year, month, day, hour, minute, and second. 312 * whose lexical representation contains only day, hour, minute, and second components. 352 * whose lexical representation contains only day, hour, minute, and second components. 374 * <p>Any remaining milliseconds after determining the day, hour, minute and second are discarded.</p> 438 * <code>day</code>, <code>hour</code>, <code>minute</code> and <code>second</code> as defined in 443 * whose lexical representation contains only day, hour, minute, and second components. 458 * @param second Secon 466 newDurationDayTime( final boolean isPositive, final BigInteger day, final BigInteger hour, final BigInteger minute, final BigInteger second) argument 508 newDurationDayTime( final boolean isPositive, final int day, final int hour, final int minute, final int second) argument 788 newXMLGregorianCalendar( final BigInteger year, final int month, final int day, final int hour, final int minute, final int second, final BigDecimal fractionalSecond, final int timezone) argument 824 newXMLGregorianCalendar( final int year, final int month, final int day, final int hour, final int minute, final int second, final int millisecond, final int timezone) argument [all...] |
H A D | XMLGregorianCalendar.java | 105 * For a value of 24, the minute and second field must be zero per 115 * <a name="datetimefield-second"/> 117 * <td>second</td> 124 * <i>(Note: 60 only allowable for leap second.)</i><br/> 201 * int second, 210 * int second, 318 * @param second value constraints are summarized in 319 * <a href="#datetimefield-second">second field of date/time field mapping table</a>. 327 public void setTime(int hour, int minute, int second) { argument 371 setSecond(int second) argument 416 setTime( int hour, int minute, int second, BigDecimal fractional) argument 444 setTime(int hour, int minute, int second, int millisecond) argument [all...] |
/libcore/ojluni/src/main/java/sun/security/util/ |
H A D | ObjectIdentifier.java | 150 int first = 0, second; 376 BigInteger second = big.subtract(BigInteger.valueOf(80)); 377 if (second.compareTo(BigInteger.valueOf(Integer.MAX_VALUE)) == 1) { 380 result[which++] = second.intValue(); 601 * 4. if the first is 0 or 1, the second must be <40 643 private static void checkSecondComponent(int first, int second) throws IOException { argument 644 if (second < 0 || first != 2 && second > 39) { 649 private static void checkSecondComponent(int first, BigInteger second) throws IOException { argument 650 if (second [all...] |
/libcore/ojluni/src/main/java/java/util/ |
H A D | Arrays.java | 92 * for its second argument. 104 public int compare(Object first, Object second) { argument 105 return ((Comparable<Object>)first).compareTo(second);
|
H A D | GregorianCalendar.java | 674 * @param second the value used to set the <code>SECOND</code> calendar field 678 int minute, int second) { 679 this(year, month, dayOfMonth, hourOfDay, minute, second, 0); 694 * @param second the value used to set the <code>SECOND</code> calendar field 699 int hourOfDay, int minute, int second, int millis) { 724 this.set(SECOND, second); 677 GregorianCalendar(int year, int month, int dayOfMonth, int hourOfDay, int minute, int second) argument 698 GregorianCalendar(int year, int month, int dayOfMonth, int hourOfDay, int minute, int second, int millis) argument
|
H A D | Calendar.java | 529 * second within the minute. 536 * millisecond within the second. 619 * second month of the year in the Gregorian and Julian calendars. 1233 * {@code hourOfDay}, {@code minute}, and {@code second}. This method is 1236 * setTimeOfDay(hourOfDay, minute, second, 0);</pre> 1241 * @param second the {@link Calendar#SECOND SECOND} value 1244 public Builder setTimeOfDay(int hourOfDay, int minute, int second) { argument 1245 return setTimeOfDay(hourOfDay, minute, second, 0); 1250 * {@code hourOfDay}, {@code minute}, {@code second}, and 1255 * Calendar.SECOND, second, 1265 setTimeOfDay(int hourOfDay, int minute, int second, int millis) argument 1939 set(int year, int month, int date, int hourOfDay, int minute, int second) argument [all...] |
/libcore/luni/src/test/java/libcore/java/security/ |
H A D | ProviderTest.java | 1052 private final B second; field in class:ProviderTest.Pair 1053 Pair(A first, B second) { argument 1055 this.second = second; 1073 provAndParam.operationParameters.second); 1085 provAndParam.operationParameters.second); 1094 provAndParam.operationParameters.second); 1100 provAndParam.operationParameters.second); 1106 provAndParam.operationParameters.second); 1115 provAndParam.operationParameters.second); [all...] |
/libcore/ojluni/src/main/java/java/time/ |
H A D | LocalDate.java | 1530 * // these two lines are equivalent, but the second approach is recommended 1566 * The second is to use {@link TemporalUnit#between(Temporal, Temporal)}: 1582 * as the second argument. 1644 * The second is to use {@link Period#between(LocalDate, LocalDate)}: 1725 * specified hour, minute and second. 1732 * @param second the second-of-minute to represent, from 0 to 59 1736 public LocalDateTime atTime(int hour, int minute, int second) { argument 1737 return atTime(LocalTime.of(hour, minute, second)); 1744 * specified hour, minute, second an 1755 atTime(int hour, int minute, int second, int nanoOfSecond) argument [all...] |
H A D | LocalTime.java | 101 * often viewed as hour-minute-second. 187 * Nanos per second. 217 * The second. 219 private final byte second; field in class:LocalTime 282 * The second and nanosecond fields will be set to zero. 299 * Obtains an instance of {@code LocalTime} from an hour, minute and second. 301 * This returns a {@code LocalTime} with the specified hour, minute and second. 306 * @param second the second-of-minute to represent, from 0 to 59 310 public static LocalTime of(int hour, int minute, int second) { argument 332 of(int hour, int minute, int second, int nanoOfSecond) argument 450 create(int hour, int minute, int second, int nanoOfSecond) argument 465 LocalTime(int hour, int minute, int second, int nanoOfSecond) argument 897 withSecond(int second) argument [all...] |
H A D | OffsetTime.java | 101 * viewed as hour-minute-second-offset. 211 * Obtains an instance of {@code OffsetTime} from an hour, minute, second and nanosecond. 223 * @param second the second-of-minute to represent, from 0 to 59 224 * @param nanoOfSecond the nano-of-second to represent, from 0 to 999,999,999 229 public static OffsetTime of(int hour, int minute, int second, int nanoOfSecond, ZoneOffset offset) { argument 230 return new OffsetTime(LocalTime.of(hour, minute, second, nanoOfSecond), offset); 597 * This returns a {@code LocalTime} with the same hour, minute, second and 626 * Gets the second-of-minute field. 628 * @return the second 774 withSecond(int second) argument [all...] |
H A D | LocalDateTime.java | 105 * often viewed as year-month-day-hour-minute-second. Other date and time fields, 213 * day, hour and minute, setting the second and nanosecond to zero. 218 * The second and nanosecond fields will be set to zero. 237 * day, hour, minute and second, setting the nanosecond to zero. 240 * day-of-month, hour, minute and second. 249 * @param second the second-of-minute to represent, from 0 to 59 254 public static LocalDateTime of(int year, Month month, int dayOfMonth, int hour, int minute, int second) { argument 256 LocalTime time = LocalTime.of(hour, minute, second); 262 * day, hour, minute, second an 279 of(int year, Month month, int dayOfMonth, int hour, int minute, int second, int nanoOfSecond) argument 329 of(int year, int month, int dayOfMonth, int hour, int minute, int second) argument 354 of(int year, int month, int dayOfMonth, int hour, int minute, int second, int nanoOfSecond) argument 1074 withSecond(int second) argument [all...] |
H A D | OffsetDateTime.java | 275 * hour, minute, second, nanosecond and offset. 290 * @param second the second-of-minute to represent, from 0 to 59 291 * @param nanoOfSecond the nano-of-second to represent, from 0 to 999,999,999 299 int hour, int minute, int second, int nanoOfSecond, ZoneOffset offset) { 300 LocalDateTime dt = LocalDateTime.of(year, month, dayOfMonth, hour, minute, second, nanoOfSecond); 811 * This returns a {@code LocalTime} with the same hour, minute, second and 839 * Gets the second-of-minute field. 841 * @return the second-of-minute, from 0 to 59 848 * Gets the nano-of-second fiel 297 of( int year, int month, int dayOfMonth, int hour, int minute, int second, int nanoOfSecond, ZoneOffset offset) argument 1084 withSecond(int second) argument [all...] |
H A D | ZonedDateTime.java | 292 * hour, minute, second, nanosecond and time-zone. 323 * @param second the second-of-minute to represent, from 0 to 59 324 * @param nanoOfSecond the nano-of-second to represent, from 0 to 999,999,999 332 int hour, int minute, int second, int nanoOfSecond, ZoneId zone) { 333 LocalDateTime dt = LocalDateTime.of(year, month, dayOfMonth, hour, minute, second, nanoOfSecond); 441 * @param nanoOfSecond the nanosecond within the second, from 0 to 999,999,999 1124 * This returns a {@code LocalTime} with the same hour, minute, second and 1153 * Gets the second-of-minute field. 1155 * @return the second 330 of( int year, int month, int dayOfMonth, int hour, int minute, int second, int nanoOfSecond, ZoneId zone) argument 1464 withSecond(int second) argument [all...] |
/libcore/luni/src/main/java/libcore/util/ |
H A D | ZoneInfo.java | 453 // one second after what we need. 713 private int second; field in class:ZoneInfo.WallTime 874 * second or a year to a valid time to arrive at what they have. 1100 public void setSecond(int second) { argument 1101 this.second = second; 1141 return second; 1166 calendar.set(Calendar.SECOND, second); 1176 second = calendar.get(Calendar.SECOND);
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
H A D | TCKZonedDateTime.java | 2418 int hour, int minute, int second, int nanoOfSecond) { 2419 return LocalDateTime.of(year, month, dayOfMonth, hour, minute, second, nanoOfSecond); 2424 int hour, int minute, int second, int nanoOfSecond, ZoneOffset offset, ZoneId zoneId) { 2425 return ZonedDateTime.ofStrict(LocalDateTime.of(year, month, dayOfMonth, hour, minute, second, nanoOfSecond), offset, zoneId); 2416 dateTime( int year, int month, int dayOfMonth, int hour, int minute, int second, int nanoOfSecond) argument 2422 dateTime( int year, int month, int dayOfMonth, int hour, int minute, int second, int nanoOfSecond, ZoneOffset offset, ZoneId zoneId) argument
|