com.thoughtworks.xstream.security
Class PrimitiveTypePermission

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

public class PrimitiveTypePermission
extends java.lang.Object
implements TypePermission

Permission for any primitive type and its boxed counterpart (incl. void).

Since:
1.4.7
Author:
Jörg Schaible

Field Summary
static TypePermission PRIMITIVES
           
 
Constructor Summary
PrimitiveTypePermission()
           
 
Method Summary
 boolean allows(java.lang.Class type)
          Check permission for a provided type.
 boolean equals(java.lang.Object obj)
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PRIMITIVES

public static final TypePermission PRIMITIVES
Since:
1.4.7
Constructor Detail

PrimitiveTypePermission

public PrimitiveTypePermission()
Method Detail

allows

public boolean allows(java.lang.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 java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2005-2016. All Rights Reserved.