Possible duplicate:
What is →> and → →> in Java?
I came across some unfamiliar characters in some kind of java code, and although the code compiles and functions correctly, I am confused by what exactly the angle brackets do in this code. I found the code in com.sun.java.help.search.BitBuffer , a snippet of which is below:
public void append(int source, int kBits) { if (kBits < _avail) { _word = (_word << kBits) | source; _avail -= kBits; } else if (kBits > _avail) { int leftover = kBits - _avail; store((_word << _avail) | (source >>> leftover)); _word = source; _avail = NBits - leftover; } else { store((_word << kBits) | source); _word = 0; _avail = NBits; } }
What do mysterious brackets do? It almost looks like C ++ insert / extract, but I know that Java has nothing of the kind.
Also, I tried to do a search on Google, but for some reason, Google doesn't seem to see angle brackets, even if I put them in quotation marks.
source share