Class ResultSuppliers


  • public class ResultSuppliers
    extends Object
    Contains static methods to generate Suppliers with common rest results.

    Useful for passing into Option.getOrElse(Supplier)

    • Constructor Detail

      • ResultSuppliers

        public ResultSuppliers()
    • Method Detail

      • notFoundException

        public static com.google.common.base.Supplier notFoundException​(String msg)
        Parameters:
        msg -
        Throws:
        com.sun.jersey.api.NotFoundException - with the given message when get() is called