MCPcopy Create free account
hub / github.com/apache/tomcat / isLongOp

Method isLongOp

java/org/apache/el/lang/ELSupport.java:729–733  ·  view source on GitHub ↗

Checks if either operand is a Long, Integer, Character, Short, or Byte. @param obj0 the first operand @param obj1 the second operand @return true if either operand is a Long-compatible type

(final Object obj0, final Object obj1)

Source from the content-addressed store, hash-verified

727 * @return true if either operand is a Long-compatible type
728 */
729 public static boolean isLongOp(final Object obj0, final Object obj1) {
730 return (obj0 instanceof Long || obj1 instanceof Long || obj0 instanceof Integer || obj1 instanceof Integer ||
731 obj0 instanceof Character || obj1 instanceof Character || obj0 instanceof Short ||
732 obj1 instanceof Short || obj0 instanceof Byte || obj1 instanceof Byte);
733 }
734
735 /**
736 * Checks if a string represents a floating-point number by looking for 'E', 'e', or '.' characters.

Callers 2

compareMethod · 0.95
equalsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected