
com.taobao.tdhs.client.request.ValueEntry Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tdhs-java-client Show documentation
Show all versions of tdhs-java-client Show documentation
A TDH_SOCKET Client For Java
/*
* Copyright(C) 2011-2012 Alibaba Group Holding Limited
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* Authors:
* wentong
*/
package com.taobao.tdhs.client.request;
import com.taobao.tdhs.client.common.TDHSCommon;
import com.taobao.tdhs.client.exception.TDHSEncodeException;
/**
* @author 文通
* @since 11-12-14 下午4:30
*/
public class ValueEntry implements Request {
private int ____flag;
//String or byte
private Object _value;
/**
* Constructor ValueEntry creates a new ValueEntry instance.
*
* @param flag of type UpdateFlag
* @param _value of type String
*/
public ValueEntry(TDHSCommon.UpdateFlag flag, String _value) {
this.____flag = flag.getValue();
this._value = _value;
}
/**
* Constructor ValueEntry creates a new ValueEntry instance.
*
* @param flag of type UpdateFlag
* @param _value of type byte[]
*/
public ValueEntry(TDHSCommon.UpdateFlag flag, byte[] _value) {
this.____flag = flag.getValue();
this._value = _value;
}
/**
* Method isVaild ...
*
* @throws TDHSEncodeException when
*/
public void isVaild() throws TDHSEncodeException {
}
/**
* Method toString ...
*
* @return String
*/
@Override
public String toString() {
return "ValueEntry{" +
"flag=" + ____flag +
", value='" + _value + '\'' +
'}';
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy