blob: 83f1fc3581c136c202668fc2cb9afc997fd557c6 [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 field metadata.
7 *
8 * @author Mark Slee <mcslee@facebook.com>
9 */
10public class TField {
11 public TField() {}
12
13 public TField(String n, TType t, int i) {
14 this(n, t, new UInt32(i));
15 }
16
17 public TField(String n, TType t, UInt32 i) {
18 name = n;
19 type = t;
20 id = i;
21 }
22
23 public String name = "";
24 public TType type = TType.STOP;
25 public UInt32 id = new UInt32();
26}