@Override public String getString() { return symbol(); } }
@Override public String getString() { return symbol(); } }
/** * Attempt to find the Order given a symbol. The matching is done independent of case. * * @param symbol the symbol * @return the Order having the supplied symbol, or null if there is no Order with the supplied symbol * @throws IllegalArgumentException if the symbol is null */ public static NullOrder forSymbol( String symbol ) { CheckArg.isNotNull(symbol, "symbol"); if (NULLS_FIRST.symbol().equalsIgnoreCase(symbol)) return NULLS_FIRST; if (NULLS_LAST.symbol().equalsIgnoreCase(symbol)) return NULLS_LAST; return null; }
/** * Attempt to find the Order given a symbol. The matching is done independent of case. * * @param symbol the symbol * @return the Order having the supplied symbol, or null if there is no Order with the supplied symbol * @throws IllegalArgumentException if the symbol is null */ public static NullOrder forSymbol( String symbol ) { CheckArg.isNotNull(symbol, "symbol"); if (NULLS_FIRST.symbol().equalsIgnoreCase(symbol)) return NULLS_FIRST; if (NULLS_LAST.symbol().equalsIgnoreCase(symbol)) return NULLS_LAST; return null; }
@Override public void visit( Ordering ordering ) { ordering.getOperand().accept(this); append(' ').append(ordering.order().symbol()); append(' ').append(ordering.nullOrder().symbol()); } }
@Override public void visit( Ordering ordering ) { ordering.getOperand().accept(this); append(' ').append(ordering.order().symbol()); append(' ').append(ordering.nullOrder().symbol()); } }