目录

DayNightMsg

Class Info

public class DayNightMsg

Daytime or night message class.

Public Method Summary

Qualifier and Type

Method Name and Description

String

getMsg()

Obtains the calculation information.

boolean

isDayTime()

Checks whether the current time is in daytime.

boolean

isResult()

Obtains the calculation result.

Public Methods

[h2]getMsg

Method

public String getMsg()

Obtains the calculation information.

Returns

Type

Description

String

Calculation information, that is, error reason.

[h2]isDayTime

Method

public boolean isDayTime()

Checks whether the current time is in daytime.

Returns

Type

Description

boolean

Whether the current time is in daytime.

  • true: daytime
  • false: night

[h2]isResult

Method

public boolean isResult()

Obtains the calculation result.

Returns

Type

Description

boolean

Whether the calculation result is obtained successfully.

  • true: yes
  • false: no