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 set metadata. |
| 5 | * |
| 6 | * @author Mark Slee <mcslee@facebook.com> |
| 7 | */ |
| 8 | public class TSet { |
| 9 | public TSet() {} |
| 10 | |
Mark Slee | 530fd66 | 2006-08-09 00:05:18 +0000 | [diff] [blame] | 11 | public TSet(byte t, int s) { |
Mark Slee | 83c52a8 | 2006-06-07 06:51:18 +0000 | [diff] [blame] | 12 | elemType = t; |
| 13 | size = s; |
| 14 | } |
| 15 | |
Mark Slee | 530fd66 | 2006-08-09 00:05:18 +0000 | [diff] [blame] | 16 | public byte elemType = TType.STOP; |
| 17 | public int size = 0; |
Mark Slee | 83c52a8 | 2006-06-07 06:51:18 +0000 | [diff] [blame] | 18 | } |