Skip to content

Commit dffae06

Browse files
committed
Simplify static methods call.
1 parent de40385 commit dffae06

File tree

1 file changed

+10
-10
lines changed
  • src/main/java/com/github/underscore

1 file changed

+10
-10
lines changed

src/main/java/com/github/underscore/$.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -712,11 +712,11 @@ public static <E> E[] initial(final E[] array, final int n) {
712712
}
713713

714714
public List<T> initial() {
715-
return $.initial((List) iterable, 1);
715+
return initial((List) iterable, 1);
716716
}
717717

718718
public List<T> initial(final int n) {
719-
return $.initial((List) iterable, n);
719+
return initial((List) iterable, n);
720720
}
721721

722722
public static <E> E last(final E ... array) {
@@ -732,11 +732,11 @@ public static <E> List<E> last(final List<E> list, final int n) {
732732
}
733733

734734
public T last() {
735-
return $.last((List<T>) iterable);
735+
return last((List<T>) iterable);
736736
}
737737

738738
public List<T> last(final int n) {
739-
return $.last((List) iterable, n);
739+
return last((List) iterable, n);
740740
}
741741

742742
public static <E> List<E> rest(final List<E> list) {
@@ -756,11 +756,11 @@ public static <E> E[] rest(final E[] array, final int n) {
756756
}
757757

758758
public List<T> rest() {
759-
return $.rest((List) iterable);
759+
return rest((List) iterable);
760760
}
761761

762762
public List<T> rest(int n) {
763-
return $.rest((List) iterable, n);
763+
return rest((List) iterable, n);
764764
}
765765

766766
public static <E> List<E> tail(final List<E> list) {
@@ -831,11 +831,11 @@ public static <E> E[] compact(final E[] array, final E falsyValue) {
831831
}
832832

833833
public List<T> compact() {
834-
return $.compact((List) iterable);
834+
return compact((List) iterable);
835835
}
836836

837837
public List<T> compact(final T falsyValue) {
838-
return $.compact((List) iterable, falsyValue);
838+
return compact((List) iterable, falsyValue);
839839
}
840840

841841
public static <E> List<E> flatten(final List<?> list) {
@@ -861,11 +861,11 @@ private static <E> void flatten(final List<?> fromTreeList, final List<E> toFlat
861861
}
862862

863863
public List<T> flatten() {
864-
return $.flatten((List) iterable);
864+
return flatten((List) iterable);
865865
}
866866

867867
public List<T> flatten(final boolean shallow) {
868-
return $.flatten((List) iterable, shallow);
868+
return flatten((List) iterable, shallow);
869869
}
870870

871871
public static <E> List<E> without(final List<E> list, E ... values) {

0 commit comments

Comments
 (0)