public static long getValue(EnumSet<Migration> set) { return EnumValues.getValue(set); }
public static AffinityDomain getEnum(long v) { return EnumValues.getEnum(v, AffinityDomain.class); } }
public static EnumSet<ExecutionCapability> getEnumSet(long v) { return EnumValues.getEnumSet(v, ExecutionCapability.class); } }
/** * Get the first enum item in enum class E which EnumValue value is equal to value * @param <E> type of the enum * @param value * @param enumClass * @return first enum item with matching value, null if there is no matching enum item */ public static <E extends Enum<E>> E getEnum(long value, Class<E> enumClass) { return getCache(enumClass).enumsByValue.get(value); }
/** * Get the integer value associated with an enum item * @see EnumValue * @param enumItem * @return the numeric value of the enum */ @SuppressWarnings("unchecked") public static <E extends Enum<?>> long getValue(E enumItem) { return getCache((Class<E>) enumItem.getDeclaringClass()).valuesByEnum.get(enumItem); }
public static long getValue(EnumSet<PartitionType> set) { return EnumValues.getValue(set); }
public static LocalMemType getEnum(long v) { return EnumValues.getEnum(v, LocalMemType.class); } }
public static EnumSet<Migration> getEnumSet(long v) { return EnumValues.getEnumSet(v, Migration.class); } }
/** * Get the set of all the enum item in enum class E which EnumValue value flags are all present in value * @param <E> type of the enum * @param value * @param enumClass * @return enum items with matching value flags */ public static <E extends Enum<E>> EnumSet<E> getEnumSet(long value, Class<E> enumClass) { EnumSet<E> set = EnumSet.noneOf(enumClass); for (Map.Entry<Long, E> pair : getCache(enumClass).enumsByValue.entrySet()) { long ev = pair.getKey(); if ((ev & value) == ev) { set.add(pair.getValue()); } } return set; }
public static long getValue(EnumSet<ContextProperties> set) { return EnumValues.getValue(set); }
public static GlobalMemCacheType getEnum(long v) { return EnumValues.getEnum(v, GlobalMemCacheType.class); } }
public static EnumSet<ContextProperties> getEnumSet(long v) { return EnumValues.getEnumSet(v, ContextProperties.class); } }
public static long getValue(EnumSet<QueueProperties> set) { return EnumValues.getValue(set); }
public static LocalMemType getEnum(long v) { return EnumValues.getEnum(v, LocalMemType.class); } }
public static EnumSet<PartitionType> getEnumSet(long v) { return EnumValues.getEnumSet(v, PartitionType.class); } }
public static long getValue(EnumSet<ExecutionCapability> set) { return EnumValues.getValue(set); }
public static PartitionType getEnum(long v) { return EnumValues.getEnum(v, PartitionType.class); } }
public static EnumSet<QueueProperties> getEnumSet(long v) { return EnumValues.getEnumSet(v, QueueProperties.class); } }
public static long getValue(EnumSet<Type> set) { return EnumValues.getValue(set); }
public static GlobalMemCacheType getEnum(long v) { return EnumValues.getEnum(v, GlobalMemCacheType.class); } }