Interface CanSleepInWorld.Result

All Known Implementing Classes:
CanSleepInWorld.NotDuringSleepHoursRange, CanSleepInWorld.Status
Enclosing class:
CanSleepInWorld

public static sealed interface CanSleepInWorld.Result permits CanSleepInWorld.NotDuringSleepHoursRange, CanSleepInWorld.Status
An interface representing the result of a sleep check.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
  • Method Details

    • isNegative

      boolean isNegative()
      Returns:
      true if the result indicates a negative outcome, false otherwise.