@InterfaceAudience.Private public final class JRubyFormat extends Object
E.g.
Map<String, Object> map = new LinkedHashMap<>();
map.put("null", null);
map.put("boolean", true);
map.put("number", 1);
map.put("string", "str");
map.put("binary", new byte[] { 1, 2, 3 });
map.put("list", Lists.newArrayList(1, "2", true));
Calling print(Object) method will result:
{ null => '', boolean => 'true', number => '1', string => 'str',
binary => '010203', list => [ '1', '2', 'true' ] }
| Modifier and Type | Field and Description |
|---|---|
private static org.apache.hbase.thirdparty.com.google.common.escape.Escaper |
escaper |
| Modifier | Constructor and Description |
|---|---|
private |
JRubyFormat() |
| Modifier and Type | Method and Description |
|---|---|
private static void |
appendJRuby(StringBuilder builder,
Object object) |
private static String |
escape(Object object) |
static String |
print(Object object) |
private static final org.apache.hbase.thirdparty.com.google.common.escape.Escaper escaper
private JRubyFormat()
private static void appendJRuby(StringBuilder builder, Object object)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.