(Direction dir)
| 27 | public static final byte EAST = 1 << 6; |
| 28 | |
| 29 | public static byte get(Direction dir) { |
| 30 | return switch (dir) { |
| 31 | case UP -> UP; |
| 32 | case DOWN -> DOWN; |
| 33 | case NORTH -> NORTH; |
| 34 | case SOUTH -> SOUTH; |
| 35 | case WEST -> WEST; |
| 36 | case EAST -> EAST; |
| 37 | }; |
| 38 | } |
| 39 | |
| 40 | public static boolean is(int dir, byte idk) { |
| 41 | return (dir & idk) == idk; |
nothing calls this directly
no outgoing calls
no test coverage detected