@SuppressWarnings("unchecked") public CopyOnWriteCaseInsensitiveMap() { updateCore(new CaseInsensitiveHashMap()); }
/** * {@inheritDoc} */ @Override protected <T> T doDeserialize(InputStream inputStream, ClassLoader classLoader) throws Exception { checkArgument(inputStream != null, "Cannot deserialize a null stream"); checkArgument(classLoader != null, "Cannot deserialize with a null classloader"); return (T) SerializationUtils.deserialize(inputStream, classLoader, muleContext); }
public void setStartDelay(long startDelay) { checkArgument(startDelay >= 0, "Start delay must be greater then zero"); this.startDelay = startDelay; }
public void setAttachmentName(String attachmentName) { this.nameEvaluator = new AttributeEvaluator(attachmentName); this.wildcardAttributeEvaluator = new WildcardAttributeEvaluator(attachmentName); }
@Override public String toString() { return ObjectUtils.toString(this); } }
protected SplashScreen buildStartupSplash() { SplashScreen startupScreen = config.isContainerMode() ? new ApplicationStartupSplashScreen() : new ServerStartupSplashScreen(); startupScreen.setHeader(this); startupScreen.setFooter(this); return startupScreen; }
public boolean contains(JdkVersion jdkVersion) { return (lower == null || jdkVersion.compareTo(lower) > 0 || (jdkVersion.compareTo(lower) == 0 && isLowerBoundInclusive())) && (upper == null || jdkVersion.compareTo(upper) < 0 || (jdkVersion.compareTo(upper) == 0 && isUpperBoundInclusive())); }
protected SplashScreen buildShutdownSplash() { SplashScreen shutdownScreen = config.isContainerMode() ? new ApplicationShutdownSplashScreen() : new ServerShutdownSplashScreen(); shutdownScreen.setHeader(this); return shutdownScreen; }
/** * {@inheritDoc} */ public String name(int value) { if (value < LOOKUP_TABLE_SIZE) { return lookupTable()[value]; } return super.name(value); }
public boolean isUnder(JdkVersion jdkVersion) { return (upper != null) && (jdkVersion.compareTo(upper) > 0 || (jdkVersion.compareTo(upper) == 0 && !isUpperBoundInclusive())); } }
@Override protected String convert(CaseInsensitiveMapKey next) { return next.getKey(); } }
public void setAttachmentName(String attachmentName) { this.attachmentNameEvaluator = new AttributeEvaluator(attachmentName); this.wildcardAttachmentNameEvaluator = new WildcardAttributeEvaluator(attachmentName); }
@SuppressWarnings("unchecked") @Override public void clear() { updateCore(new CaseInsensitiveHashMap()); }
@Override public String toString() { return ObjectUtils.toString(this); } }
@SuppressWarnings("unchecked") private void copy() { if (requiresCopy) { updateCore(new CaseInsensitiveHashMap(core)); requiresCopy = false; } }
@Override public String toString() { return ObjectUtils.toString(this); } }
@Override public String toString() { return ObjectUtils.toString(this); } }