protected void enforcePrimitive ( Object t ) throws ClassCastException { if ( ! JsonValue . checkType ( t ) || t instanceof JsonValue ) { throw new ClassCastException ( "Only primitive types are supported in CouchbaseArraySet, got a " + t . getClass ( ) . getName ( ) ) ; } }
Verify that the type of object t is compatible with CouchbaseArraySet storage .