java range类_Java即时类| range()方法与示例

  • Post author:
  • Post category:java


java range类

即时类range()方法

(

Instant Class range() method

)


  • range() method

    is available in

    java.time

    package.


    range()方法

    在java.time包中可用。


  • range() method

    is used to get the valid range of values for the given TemporalField.


    range()方法

    用于获取给定TemporalField的有效值范围。


  • range() method

    is a non-static method, it is accessible with the class object only and if we try to access the method with the class name then we will get an error.


    range()方法

    是一个非静态方法,只能通过类对象访问,如果尝试使用类名称访问该方法,则会收到错误消息。


  • range() method

    may throw an exception at the time of returning field range.

    在返回字段范围时,

    range()方法

    可能会引发异常。