jklustor-overlap-0.0.2-20140619012940 (ChemAxon)


com.chemaxon.overlap.io
Interface MasterStorage<T>

Type Parameters:
T - Type of structures
All Known Implementing Classes:
CompactStringStorage, MasterMoleculeStorage

public interface MasterStorage<T>

Master structure storage represents the molecules from a repository.

Typically retrieval of individual structures can be slow (in ms range) compared to descriptor comparison/screening speed requirements. Intended usage is provide visual display of structures in a user interface.

It is possible that certain structures are not retrievable; clients must be prepared for the handling of missing structures.

Author:
Gabor Imre

Method Summary
 Optional<T> get(int index)
          Get given structure identified with an index.
 int getAbsentCount()
          Number of absent structures.
 int size()
          Number of structures in the storage.
 

Method Detail

size

int size()
Number of structures in the storage.

Returns:
Number of structures in the storage

getAbsentCount

int getAbsentCount()
Number of absent structures.

Returns:
Number of absent structures.

get

Optional<T> get(int index)
Get given structure identified with an index.

Parameters:
index - Structure index
Returns:
Structure if present

jklustor-overlap-0.0.2-20140619012940 (ChemAxon)