org.redkalex.convert.pson.ProtobufCollectionDecoder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of redkale-plugins Show documentation
Show all versions of redkale-plugins Show documentation
Redkale-Plugins -- java framework
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package org.redkalex.convert.pson;
import java.lang.reflect.Type;
import org.redkale.convert.*;
/**
*
* @author zhangjx
* @param T
*/
public class ProtobufCollectionDecoder extends CollectionDecoder {
private final boolean string;
public ProtobufCollectionDecoder(ConvertFactory factory, Type type) {
super(factory, type);
this.string = String.class == this.getComponentType();
}
@Override
protected Reader getItemReader(Reader in, DeMember member, boolean first) {
return ProtobufFactory.getItemReader(string, in, member, first);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy