public static boolean getEndianity(long endian, boolean defaultisBigEndian) {
		switch ((int) endian) {
			case DW_END_default:
				return defaultisBigEndian;
			case DW_END_big:
				return true;
			case DW_END_little:
				return false;
			default:
				throw new IllegalArgumentException(
					"Unhandled endian type: " + DWARFUtil.toString(DWARFEndianity.class, endian));
		}
	}
Get the endianity given a DWARFEndianity value.
@param endian DWARFEndianity value to check
@param defaultisBigEndian true if by default is big endian and false otherwise
@return true if big endian and false if little endian
@throws IllegalArgumentException if an unknown endian value is given
Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/dwarf/DWARFEndianity.java