blob: e0dcf769f19bf78a10ad3c53066f80ea559c86df [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) {
14 this(t, new UInt32(s));
15 }
16
17 public TSet(TType t, UInt32 s) {
18 elemType = t;
19 size = s;
20 }
21
22 public TType elemType = TType.STOP;
23 public UInt32 size = new UInt32();
24}