Summary: Ctors | Methods | Inherited Methods | [Expand All]
public class

# ResultSnapshot

extends Object
implements AutoCloseable

java.lang.Object
↳ | com.pdftron.sdf.ResultSnapshot

## Class Overview

The class ResultSnapshot. Represents a transition between two document states.

## Summary

Public Constructors
| ResultSnapshot(long impl_ptr)

Public Methods
long | __GetHandle()
void | close() Frees the native memory of the object.
DocSnapshot | currentState() Retrieves the document state to which this transition has transitioned.
void | destroy() Frees the native memory of the object.
boolean | isNullTransition() Returns whether this transition is a null transition.
boolean | isOk() Returns whether this transition is valid or a null transition.
DocSnapshot | previousState() Retrieves the document state from which this transition has transitioned.

[Expand] Inherited Methods
From class java.lang.Object
boolean | equals(Object arg0)
final Class<?> | getClass()
int | hashCode()
final void | notify()
final void | notifyAll()
String | toString()
final void | wait(long arg0, int arg1)
final void | wait(long arg0)
final void | wait()
From interface java.lang.AutoCloseable
abstract void | close()

## Public Constructors

#### public ResultSnapshot (long impl_ptr)

## Public Methods

#### public long __GetHandle ()

#### public void close ()

Frees the native memory of the object. This can be explicity called to control the deallocation of native memory and avoid situations where the garbage collector does not free the object in a timely manner.

##### Throws

PDFNetException |

#### public DocSnapshot currentState ()

Retrieves the document state to which this transition has transitioned.

##### Returns

- The current document state.

##### Throws

PDFNetException |

#### public void destroy ()

Frees the native memory of the object. This can be explicity called to control the deallocation of native memory and avoid situations where the garbage collector does not free the object in a timely manner.

##### Throws

PDFNetException |

#### public boolean isNullTransition ()

Returns whether this transition is a null transition.

##### Returns

- Whether this transition is a null transition.

##### Throws

PDFNetException |

#### public boolean isOk ()

Returns whether this transition is valid or a null transition.

##### Returns

- Whether this transition is valid or a null transition.

##### Throws

PDFNetException |

#### public DocSnapshot previousState ()

Retrieves the document state from which this transition has transitioned.

##### Returns

- The previous document state.

##### Throws

PDFNetException |