List of usage examples for java.lang Boolean FALSE
Boolean FALSE
To view the source code for java.lang Boolean FALSE.
Click Source Link
From source file:com.snv.todo.TodoCrudService.java
public TodoCrudService() { if (!Boolean.FALSE.equals(isTodoCrudServiceImplemented)) { throw new IllegalStateException( "L'instance TodoCrudService ne peut tre implment plus d'une fois."); }/*from w w w . j av a 2 s . c om*/ this.open(); isTodoCrudServiceImplemented = Boolean.TRUE; }
From source file:com.snv.user.UserCrudService.java
public UserCrudService() { if (!Boolean.FALSE.equals(isUserCrudServiceImplemented)) { throw new IllegalStateException( "L'instance UserCrudService ne peut tre implment plus d'une fois."); }// w w w . ja v a 2s.c o m this.open(); isUserCrudServiceImplemented = Boolean.TRUE; }
From source file:org.springmodules.validation.valang.EqualsFunction.java
protected Object getResult(Object target, Function[] arguments) { Object value1 = arguments[0].getResult(target); Object value2 = arguments[1].getResult(target); return (ObjectUtils.nullSafeEquals(value1, value2)) ? Boolean.TRUE : Boolean.FALSE; }
From source file:com.autentia.wuija.trace.TraceRepository.java
@SuppressWarnings("unused") private TraceRepository() { super(); this.operationalTraceActive = Boolean.FALSE; }
From source file:com.tikinou.schedulesdirect.core.jackson.deser.BooleanYNDeserializer.java
@Override public Boolean deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { JsonToken t = jp.getCurrentToken();/*w w w. j av a 2 s.com*/ if (t == JsonToken.VALUE_TRUE) { return Boolean.TRUE; } if (t == JsonToken.VALUE_FALSE) { return Boolean.FALSE; } if (t == JsonToken.VALUE_NULL) { return null; } if (t == JsonToken.VALUE_NUMBER_INT) { return (jp.getIntValue() != 0); } if (t == JsonToken.VALUE_STRING) { String text = jp.getText().trim(); if ("true".equals(text)) { return Boolean.TRUE; } if ("false".equals(text) || text.length() == 0) { return Boolean.FALSE; } if ("N".equalsIgnoreCase(text) || text.length() == 0) { return Boolean.FALSE; } if ("Y".equalsIgnoreCase(text)) { return Boolean.TRUE; } throw ctxt.weirdStringException(text, Boolean.class, "only \"true\" or \"false\" recognized"); } // Otherwise, no can do: throw ctxt.mappingException(Boolean.class); }
From source file:in.rishikeshdarandale.rest.model.cart.Cart.java
public Boolean isItemExists(CartItem item) { Boolean exists = Boolean.FALSE; if (this.getItems() != null && !this.getItems().isEmpty()) { exists = this.getItems().contains(item); }//from ww w . j a v a 2s .com return exists; }
From source file:ar.com.zauber.commons.dao.predicate.InPredicate.java
/** @see Predicate#evaluate(java.lang.Object) */ public final boolean evaluate(final T value) { for (T element : target) { if (element.equals(value)) { return Boolean.TRUE; }/*from w w w . jav a 2 s. c o m*/ } return Boolean.FALSE; }
From source file:com.snv.calendar.CalendarCrudService.java
public CalendarCrudService() { if (!Boolean.FALSE.equals(isCalendarCrudServiceImplemented)) { throw new IllegalStateException( "L'instance calendarCrudService ne peut tre implment plus d'une fois."); }/* w w w . j a v a 2 s . c o m*/ this.open(); isCalendarCrudServiceImplemented = Boolean.TRUE; }
From source file:com.wizecommerce.hecuba.JSONResultSet.java
public Boolean getBoolean(String fieldName) { return getBoolean(fieldName, Boolean.FALSE); }
From source file:com.omertron.slackbot.utils.PropertiesUtil.java
/** * Set the properties filename// w ww. j a v a 2 s .c o m * * @param streamName * @return */ public static boolean setPropertiesStreamName(final String streamName) { LOG.info("Using properties file '{}'", FilenameUtils.normalize(streamName)); try (InputStream propertiesStream = new FileInputStream(streamName);) { try (Reader reader = new InputStreamReader(propertiesStream, PROPERTIES_CHARSET)) { PROPS.load(reader); } } catch (IOException error) { LOG.error( "Failed loading file {}: Please check your configuration. The properties file should be in the classpath.", streamName, error); return Boolean.FALSE; } return Boolean.TRUE; }