
io.molr.commons.util.Strands Maven / Gradle / Ivy
package io.molr.commons.util;
import io.molr.commons.domain.Strand;
/**
* Utility methods for {@link Strand}s
*/
public final class Strands {
private static final String ROOT_NAME_PLACEHOLDER = "root";
/**
* Does the provided name indicates a root strand?
*
* @param strandName the name to compare
* @return whether or not the name matches the root convention
*/
public static boolean isRootStrandPlaceholder(String strandName) {
return ROOT_NAME_PLACEHOLDER.equals(strandName);
}
/**
* @return the a placeholder string that represents the root strand
*/
public static String rootStrandPlaceholder() {
return ROOT_NAME_PLACEHOLDER;
}
private Strands() {
/* static methods */
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy