blob: 85675e006c0b8183128e010e5396273e647e1812 [file] [log] [blame]
Mark Slee7eb0d632007-03-01 00:00:27 +00001// Copyright (c) 2006- Facebook
2// Distributed under the Thrift Software License
3//
4// See accompanying file LICENSE or visit the Thrift site at:
5// http://developers.facebook.com/thrift/
6
Mark Slee83c52a82006-06-07 06:51:18 +00007package com.facebook.thrift.protocol;
8
Mark Slee83c52a82006-06-07 06:51:18 +00009/**
10 * Helper class that encapsulates field metadata.
11 *
12 * @author Mark Slee <mcslee@facebook.com>
13 */
14public class TField {
15 public TField() {}
16
Mark Slee78f58e22006-09-02 04:17:07 +000017 public TField(String n, byte t, short i) {
Mark Slee83c52a82006-06-07 06:51:18 +000018 name = n;
19 type = t;
20 id = i;
21 }
22
23 public String name = "";
Mark Slee530fd662006-08-09 00:05:18 +000024 public byte type = TType.STOP;
Mark Slee78f58e22006-09-02 04:17:07 +000025 public short id = 0;
Mark Slee83c52a82006-06-07 06:51:18 +000026}