コード例 #1
0
 public final boolean isAvailable() {
   if (myValue == ThreeState.UNSURE) {
     try {
       myValue = ThreeState.fromBoolean(calcValue());
     } catch (VMDisconnectedException e) {
       LOG.info(e);
       myValue = ThreeState.NO;
     }
   }
   return myValue.toBoolean();
 }
コード例 #2
0
    public MessageError(@NotNull String error, boolean log) {
      super(error);

      this.log = ThreeState.fromBoolean(log);
    }