mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-24 00:50:53 +07:00
24 lines
438 B
Java
24 lines
438 B
Java
|
|
import java.util.function.Function;
|
|
|
|
class It {
|
|
|
|
Function<It, TextRange> f = new Function<It, TextRange>() {
|
|
@Override
|
|
public TextRange apply(final It it) {
|
|
long offset = 9;
|
|
return offset == 0 ? it.range() : it.range().shiftRight((int) offset);
|
|
}
|
|
};
|
|
|
|
class TextRange {
|
|
public TextRange shiftRight(final int offset) {
|
|
return null;
|
|
}
|
|
}
|
|
|
|
TextRange range() {
|
|
return new TextRange();
|
|
}
|
|
|
|
} |