Mark Slee | 83c52a8 | 2006-06-07 06:51:18 +0000 | [diff] [blame] | 1 | package com.facebook.thrift.protocol; |
| 2 | |
Mark Slee | 83c52a8 | 2006-06-07 06:51:18 +0000 | [diff] [blame] | 3 | /** |
| 4 | * Helper class that encapsulates field metadata. |
| 5 | * |
| 6 | * @author Mark Slee <mcslee@facebook.com> |
| 7 | */ |
| 8 | public class TField { |
| 9 | public TField() {} |
| 10 | |
Mark Slee | 78f58e2 | 2006-09-02 04:17:07 +0000 | [diff] [blame] | 11 | public TField(String n, byte t, short i) { |
Mark Slee | 83c52a8 | 2006-06-07 06:51:18 +0000 | [diff] [blame] | 12 | name = n; |
| 13 | type = t; |
| 14 | id = i; |
| 15 | } |
| 16 | |
| 17 | public String name = ""; |
Mark Slee | 530fd66 | 2006-08-09 00:05:18 +0000 | [diff] [blame] | 18 | public byte type = TType.STOP; |
Mark Slee | 78f58e2 | 2006-09-02 04:17:07 +0000 | [diff] [blame] | 19 | public short id = 0; |
Mark Slee | 83c52a8 | 2006-06-07 06:51:18 +0000 | [diff] [blame] | 20 | } |