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