-
Methods Method Description com.hubspot.immutables.utils.WireSafeEnum.asEnumOrThrow(Supplier<? extends X>) this method doesn't handle unknown enum values, and eliminates the benefits of WireSafeEnum. If you want to compare to a specific value, you can callWireSafeEnum.contains(Enum), which handles unknown values gracefully. If you do really need to coerce to an enum, you can replace this method with .asEnum().orElseThrow(exceptionSupplier)