Code example for JsonArray

Methods: size

0
  } 
 
  private Operation createCallOperation( JsonArray opArray, JsonDeserializationContext context ) {
    CallOperation co = new CallOperation();
    co.setMethod( opArray.get( 2 ).getAsString() );
    if( opArray.size() >= 4 ) {
      co.setProperties( ( CallProperties )context.deserialize( opArray.get( 3 ),
                                                               CallProperties.class ) ); 
    } 
    return co;
  } 
 
  private Operation createListenOperation( JsonArray opArray, JsonDeserializationContext context ) {
    ListenOperation lo = new ListenOperation();
    if( opArray.size() >= 3 ) {
      lo.setProperties( ( ListenProperties )context.deserialize( opArray.get( 2 ),
                                                                 ListenProperties.class ) ); 
    } 
    return lo;
  } 
 
  private Operation createSetOperation( JsonArray opArray, JsonDeserializationContext context ) {
    SetOperation so = new SetOperation();
    so.setProperties( ( SetProperties )context.deserialize( opArray.get( 2 ), SetProperties.class ) );
    return so;
  } 
 
  private Operation createCreateOperation( JsonArray opArray, JsonDeserializationContext context ) {
    CreateOperation co = new CreateOperation();
    co.setType( opArray.get( 2 ).getAsString() );
    if( opArray.size() >= 4 ) {
      co.setProperties( ( CreateProperties )context.deserialize( opArray.get( 3 ),
                                                                 CreateProperties.class ) ); 
    } 
    return co;
  } 
Connect your IDE to all the code out there  Get Codota for Java