blob: d32d7084e6496121d4428aa418a87ec885dc6489 [file] [log] [blame]
Mark Slee83c52a82006-06-07 06:51:18 +00001package com.facebook.thrift.protocol;
2
Mark Slee83c52a82006-06-07 06:51:18 +00003/**
4 * Helper class that encapsulates field metadata.
5 *
6 * @author Mark Slee <mcslee@facebook.com>
7 */
8public class TField {
9 public TField() {}
10
Mark Slee78f58e22006-09-02 04:17:07 +000011 public TField(String n, byte t, short i) {
Mark Slee83c52a82006-06-07 06:51:18 +000012 name = n;
13 type = t;
14 id = i;
15 }
16
17 public String name = "";
Mark Slee530fd662006-08-09 00:05:18 +000018 public byte type = TType.STOP;
Mark Slee78f58e22006-09-02 04:17:07 +000019 public short id = 0;
Mark Slee83c52a82006-06-07 06:51:18 +000020}