public static enum HGAtomRef.Mode extends Enum<HGAtomRef.Mode>
Enum Constant and Description |
---|
floating
This constant define an
FLOATING reference mode. |
hard
This constant define a
HARD reference mode. |
symbolic
This constant define a
SYMBOLIC reference mode. |
Modifier and Type | Method and Description |
---|---|
static HGAtomRef.Mode |
get(byte code) |
byte |
getCode() |
static HGAtomRef.Mode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HGAtomRef.Mode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HGAtomRef.Mode hard
HARD
reference mode. This behavior of
hard references is like the Unix file system hard links: when all hard references
are removed from HyperGraph, the referent is removed as well.public static final HGAtomRef.Mode symbolic
SYMBOLIC
reference mode. This behavior of
symbolic references is like the Unix file system symbolic links: they are just pointers
to the referent without an effect on its lifetime.public static final HGAtomRef.Mode floating
FLOATING
reference mode. This behavior of
floating references is particular to HyperGraph: when removed they will leave the
referent as a temporary atom that will eventually be automatically removed
from HyperGraph if not used. This behavior relies on the MANAGED
system-level atom attribute. If the referent is not managed when the last floating reference
is removed, it will be tagged as managed from then on. Thus it is still possible to
access the atom by some other means (e.g. a handle to it is kept somewhere or through
a query) and re-establish a HGAtomRef
to it.public static HGAtomRef.Mode[] values()
for (HGAtomRef.Mode c : HGAtomRef.Mode.values()) System.out.println(c);
public static HGAtomRef.Mode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullpublic byte getCode()
public static HGAtomRef.Mode get(byte code)
Copyright © 2015. All rights reserved.