/** * A short-hand alias for {@link Selectors#object}. * <p/> * Creates a {@link Selector} based on the given object. * * @param obj * The object to use for matching * * @return The new {@link ObjectSelector}. * * @see ObjectSelector */ public static <T> Selector<T> $(T obj) { return object(obj); }
/** * Creates a {@link Selector} based on the given string format and arguments. * * @param fmt * The {@code String.format} style format specification * @param args * The format args * * @return The new {@link ObjectSelector}. * * @see ObjectSelector * @see String#format(String, Object...) */ public static Selector $(String fmt, Object... args) { return object(String.format(fmt, args)); }