Class PrimitiveTypePermission

java.lang.Object
com.thoughtworks.xstream.security.PrimitiveTypePermission
All Implemented Interfaces:
TypePermission

public class PrimitiveTypePermission extends Object implements TypePermission
Permission for any primitive type and its boxed counterpart (excl. void).
Since:
1.4.7
  • Field Details

    • PRIMITIVES

      public static final TypePermission PRIMITIVES
      Since:
      1.4.7
  • Constructor Details

    • PrimitiveTypePermission

      public PrimitiveTypePermission()
  • Method Details

    • allows

      public boolean allows(Class type)
      Description copied from interface: TypePermission
      Check permission for a provided type.
      Specified by:
      allows in interface TypePermission
      Parameters:
      type - the type to check
      Returns:
      true if provided type is allowed, false if permission does not handle the type
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object