- java.lang.Object
-
- org.pcap4j.util.LazyValue<T1>
-
- Type Parameters:
T1- the type of value this class returns.
- All Implemented Interfaces:
java.io.Serializable
public final class LazyValue<T1> extends java.lang.Object implements java.io.Serializable- Since:
- pcap4j 0.9.6
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceLazyValue.BuildValueCommand<T2>
-
Field Summary
Fields Modifier and Type Field Description private LazyValue.BuildValueCommand<T1>commandprivate static longserialVersionUIDprivate java.lang.ObjectthisLockprivate T1value
-
Constructor Summary
Constructors Constructor Description LazyValue(LazyValue.BuildValueCommand<T1> command)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T1getValue()private voidwriteObject(java.io.ObjectOutputStream out)
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
command
private final transient LazyValue.BuildValueCommand<T1> command
-
thisLock
private final transient java.lang.Object thisLock
-
value
private volatile T1 value
-
-
Constructor Detail
-
LazyValue
public LazyValue(LazyValue.BuildValueCommand<T1> command)
- Parameters:
command- command
-
-
Method Detail
-
getValue
public T1 getValue()
- Returns:
- value
-
writeObject
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException- Throws:
java.io.IOException
-
-