All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.redkale.convert.ext.LongSimpledCoder Maven / Gradle / Ivy

/*
 * 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.redkale.convert.ext;

import org.redkale.convert.Reader;
import org.redkale.convert.SimpledCoder;
import org.redkale.convert.Writer;

/**
 * long 的SimpledCoder实现
 *
 * 

详情见: https://redkale.org * @author zhangjx * @param Reader输入的子类型 * @param Writer输出的子类型 */ public final class LongSimpledCoder extends SimpledCoder { public static final LongSimpledCoder instance = new LongSimpledCoder(); @Override public void convertTo(W out, Long value) { out.writeLong(value); } @Override public Long convertFrom(R in) { return in.readLong(); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy