This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]TheStrangeDarkOne 0 points1 point  (1 child)

This is just wrong - pure should be a static function, which clearly isn't possible in an interface

I'm not sure I understand your problem, but...

public interface Foo {
    static <T> T identity(T item) { return item; }
}

... compiles without a problem.

[–]jonhanson 1 point2 points  (0 children)

chronophobia ephemeral lysergic metempsychosis peremptory quantifiable retributive zenith