@Override public Object clone() throws CloneNotSupportedException { SortSpec key = (SortSpec) super.clone(); key.sortKey = sortKey; key.ascending = ascending; key.nullFirst = nullFirst; return key; }