Overview | Package | Class | Use | Tree | Deprecated | Index
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## javassist
Class SerialVersionUID

    java.lang.Object
      |
      +--javassist.SerialVersionUID

public class SerialVersionUID
extends java.lang.Object

Utility for calculating serialVersionUIDs for Serializable classes.

Author:
  Bob Lee (crazybob@crazybob.org), modified by Shigeru Chiba

Constructor Summary
`SerialVersionUID()`

Method Summary
`static void` | `setSerialVersionUID(CtClass clazz)` Adds serialVersionUID if one does not already exist.

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### SerialVersionUID

    public SerialVersionUID()

Method Detail

### setSerialVersionUID

    public static void setSerialVersionUID(CtClass clazz)
                                    throws CannotCompileException,
                                           NotFoundException

  Adds serialVersionUID if one does not already exist. Call this before modifying a class to maintain serialization compatability.

    `CannotCompileException`
    `NotFoundException`

Overview | Package | Class | Use | Tree | Deprecated | Index
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Javassist, a Java-bytecode translator toolkit. Copyright (C) 1999-2003 Shigeru Chiba. All Rights Reserved.