mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-04-01 09:24:51 +02:00
java: insert codes for initializing BigDecimalTemplate and DateTemplate instances to Templates.java
This commit is contained in:
parent
24a8ee436f
commit
193906b8ce
@ -1,7 +1,7 @@
|
|||||||
//
|
//
|
||||||
// MessagePack for Java
|
// MessagePack for Java
|
||||||
//
|
//
|
||||||
// Copyright (C) 2009-2010 FURUHASHI Sadayuki
|
// Copyright (C) 2009-2011 FURUHASHI Sadayuki
|
||||||
//
|
//
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
// you may not use this file except in compliance with the License.
|
// you may not use this file except in compliance with the License.
|
||||||
@ -76,6 +76,11 @@ public class Templates {
|
|||||||
return TBigInteger;
|
return TBigInteger;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static final Template TBigDecimal = BigDecimalTemplate.getInstance();
|
||||||
|
public static Template tBigDecimal() {
|
||||||
|
return TBigDecimal;
|
||||||
|
}
|
||||||
|
|
||||||
public static final Template TFloat = FloatTemplate.getInstance();
|
public static final Template TFloat = FloatTemplate.getInstance();
|
||||||
public static Template tFloat() {
|
public static Template tFloat() {
|
||||||
return TFloat;
|
return TFloat;
|
||||||
@ -105,5 +110,10 @@ public class Templates {
|
|||||||
public static Template tByteBuffer() {
|
public static Template tByteBuffer() {
|
||||||
return TByteBuffer;
|
return TByteBuffer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static final Template TDate = DateTemplate.getInstance();
|
||||||
|
public static Template tDate() {
|
||||||
|
return TDate;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,3 +1,20 @@
|
|||||||
|
//
|
||||||
|
// MessagePack for Java
|
||||||
|
//
|
||||||
|
// Copyright (C) 2009-2011 FURUHASHI Sadayuki
|
||||||
|
//
|
||||||
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
// you may not use this file except in compliance with the License.
|
||||||
|
// You may obtain a copy of the License at
|
||||||
|
//
|
||||||
|
// http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
//
|
||||||
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
// See the License for the specific language governing permissions and
|
||||||
|
// limitations under the License.
|
||||||
|
//
|
||||||
package org.msgpack.template;
|
package org.msgpack.template;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
@ -1,3 +1,20 @@
|
|||||||
|
//
|
||||||
|
// MessagePack for Java
|
||||||
|
//
|
||||||
|
// Copyright (C) 2009-2011 FURUHASHI Sadayuki
|
||||||
|
//
|
||||||
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
// you may not use this file except in compliance with the License.
|
||||||
|
// You may obtain a copy of the License at
|
||||||
|
//
|
||||||
|
// http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
//
|
||||||
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
// See the License for the specific language governing permissions and
|
||||||
|
// limitations under the License.
|
||||||
|
//
|
||||||
package org.msgpack.template;
|
package org.msgpack.template;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user