blob: fa6e24dc7c72ab937b11d33aa9d57f914ac28c3b [file] [log] [blame]
Mark Slee83c52a82006-06-07 06:51:18 +00001package com.facebook.thrift.protocol;
2
3import com.facebook.thrift.types.*;
4
5/**
6 * Helper class that encapsulates set metadata.
7 *
8 * @author Mark Slee <mcslee@facebook.com>
9 */
10public class TSet {
11 public TSet() {}
12
13 public TSet(TType t, int s) {
Mark Sleef3c322b2006-06-26 23:52:22 +000014 this(t, new Int32(s));
Mark Slee83c52a82006-06-07 06:51:18 +000015 }
16
Mark Sleef3c322b2006-06-26 23:52:22 +000017 public TSet(TType t, Int32 s) {
Mark Slee83c52a82006-06-07 06:51:18 +000018 elemType = t;
19 size = s;
20 }
21
22 public TType elemType = TType.STOP;
Mark Sleef3c322b2006-06-26 23:52:22 +000023 public Int32 size = new Int32();
Mark Slee83c52a82006-06-07 06:51:18 +000024}