Code example for Order

Methods: toString

0
    private static String getSortingProperty(final Order order) {
        /** 
         * This method relies on the format that Order is using: 
         * propertyName + ' ' + (ascending?"asc":"desc") 
         */ 
        final String str = order.toString();
        return str.substring(0, str.indexOf(' '));
    } 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE