I was reading a Java Generics FAQ, and came across &hellip
in various contexts:
public interface Action<E extends Exception> { void run() throws E ; } public final class Executor { public static <E extends Exception> void execute(Action<E> action) throws E { … action.run(); … } } public final class Test { private static class TestAction implements Action<java.io.FileNotFoundException> { public void run() throws java.io.FileNotFoundException { … throw new java.io.FileNotFoundException() ; … } public static void main(String[] args) { try { Executor.execute(new TestAction()) ; } catch (java.io.FileNotFoundException f) { … } } }
I then found this:
class SomeLegacyClass { public void setNames(List c) { &hellip } public List getNames() { &hellip } } final class Test { public static void main(String[] args) { SomeLegacyClass obj = new SomeLegacyClass(); List<String> names = new LinkedList<String>(); &hellip fill list &hellip obj.setNames(names); names = obj.getNames(); // unchecked warning } }
After a little more digging, I found another version of the above snippet with &hellip
replace by …
; despite a decent amount of googling, I couldn't find out what this actually means. When I attempted to put it in code, it didn't work, I'm not sure if that's because it's just some sort of commenting shorthand or this is antiquated code. Could someone please tell me what &hellip
is/means.
That's an HTML entity; it stands for Horizontal Ellipsis. It looks like this: … (One symbol; not three separate dots)
That means that their HTML is broken.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With