Ejemplo n.º 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();
 }
Ejemplo n.º 2
0
    public MessageError(@NotNull String error, boolean log) {
      super(error);

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