Click here to Skip to main content
15,891,936 members
Articles / Programming Languages / Java / Java SE

OpenNxSerialization

Rate me:
Please Sign up or sign in to vote.
5.00/5 (1 vote)
16 Jun 2009GPL32 min read 20.4K   177   9  
Speed up object serialization in Java.
/*
 * @(#)NxTypeSurrogateConstants.java	1.0
 *
 * Created on September 18, 2008, 12:59 PM
 *
 * Copyright 2008 NeXtreme Innovations, Inc. All rights reserved.
 * "NeXtreme Innovations" PROPRIETARY/CONFIDENTIAL. Use is subject
 * to license terms.
 */

package com.nextreme.opennxserialization.core.io;

/**
 * Provides constant definitions for various classes
 *
 * @version 1.0, September 18, 2008
 */
public final class NxTypeSurrogateConstants
{
    /**
     * Absolute minimum id that can be assigned to a user defined type. 
     */
    public static final short FirstTypeHandle = Short.MIN_VALUE;
    
    /**
     * Minimum id that can be assigned to a user defined type.
     */
    public static final short   MinTypeHandle = Short.MIN_VALUE + 4096;

    /**
     * Maximum id that can be assigned to a user defined type. 
     */
    public static final short   MaxTypeHandle = Short.MAX_VALUE;
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The GNU General Public License (GPLv3)


Written By
Architect
Pakistan Pakistan
Let a = b ....... (1)
a - b = a - b
a^2 - ab = a^2 - ab
a^2 - ab = a^2 - b^2 (from 1)
a (a - b) = (a + b) (a - b)
a = (a + b) ...... (2)

if a = 1
1 = (1 + 1) (from 1 & 2)
1 = 2 !!

Comments and Discussions