blob: 0a0e4df1b039aa18ee8aefd9683075e31a2de88b [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 map metadata.
11 *
12 * @author Mark Slee <mcslee@facebook.com>
13 */
14public class TMap {
15 public TMap() {}
16
Mark Slee530fd662006-08-09 00:05:18 +000017 public TMap(byte k, byte v, int s) {
Mark Slee83c52a82006-06-07 06:51:18 +000018 keyType = k;
19 valueType = v;
20 size = s;
21 }
22
Mark Slee530fd662006-08-09 00:05:18 +000023 public byte keyType = TType.STOP;
24 public byte valueType = TType.STOP;
25 public int size = 0;
Mark Slee83c52a82006-06-07 06:51:18 +000026}