com.crashnote.external.config.impl.ResolveStatus Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of crashnote-appengine Show documentation
Show all versions of crashnote-appengine Show documentation
Reports exceptions from Java apps on Appengine to crashnote.com
/**
* Copyright (C) 2011-2012 Typesafe Inc.
*/
package com.crashnote.external.config.impl;
import java.util.Collection;
/**
* Status of substitution resolution.
*/
enum ResolveStatus {
UNRESOLVED, RESOLVED;
final static ResolveStatus fromValues(
final Collection extends AbstractConfigValue> values) {
for (final AbstractConfigValue v : values) {
if (v.resolveStatus() == ResolveStatus.UNRESOLVED)
return ResolveStatus.UNRESOLVED;
}
return ResolveStatus.RESOLVED;
}
final static ResolveStatus fromBoolean(final boolean resolved) {
return resolved ? ResolveStatus.RESOLVED : ResolveStatus.UNRESOLVED;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy