Testing for big and little endian is implemented by comparing the enum constants.
In most cases the code would be cleared to have direct `isBigEndian()` and `isLittleEndian` methods. Most useful when checking against the `nativeOrder`, as in:
```
ByteOrder.nativeOrder().isBigEndian();
```
In most cases the code would be cleared to have direct `isBigEndian()` and `isLittleEndian` methods. Most useful when checking against the `nativeOrder`, as in:
```
ByteOrder.nativeOrder().isBigEndian();
```
- relates to
-
JDK-8362637 Convert java.nio.ByteOrder to an enum
-
- Open
-