I don't understand that error, but I can tell you that this isn't correct:



OrderSet<String> s1 = new OrderSet<>();

That you can't use empty generic parameter brackets. Better to do: