@@ -0,0 +1,958 @@
+package com.google.job.data;%0A%0A/** Enumeration for order that can be applied to sorting for job listings. */%0Apublic enum Order %7B%0A    ASCENDING(%22ASCENDING%22),%0A    DESCENDING(%22DESCENDING%22);%0A%0A    private final String orderId;%0A%0A    Order(String orderId) %7B%0A        this.orderId = orderId;%0A    %7D%0A%0A    /**%0A     * Returns the stable id representing the order. Can be stored in database.%0A     *%0A     * @return the stable id.%0A     */%0A    public String getOrderId() %7B%0A        return orderId;%0A    %7D%0A%0A    /**%0A     * Returns the order enum matching the provided id.%0A     *%0A     * @throws IllegalArgumentException If a status stable id cannot be found for provided id.%0A     */%0A    public static Order getFromId(String id) throws IllegalArgumentException %7B%0A        for (Order order: values())%7B%0A            if (order.getOrderId().equals(id))%7B%0A                return order;%0A            %7D%0A        %7D%0A%0A        throw new IllegalArgumentException(%22Invalid order id: %22 + id);%0A    %7D%0A%7D%0A

add order enum