24 package org.lightjason.agentspeak.language.variable;
28 import javax.annotation.Nonnull;
29 import javax.annotation.Nullable;
30 import java.util.Objects;
63 super( p_functor, p_value );
84 super( p_functor, p_value );
91 return super.
set( p_value );
95 public final synchronized <N> N
raw()
104 return super.thrownotallocated();
111 return super.throwvaluenotassignableto( p_class );
117 return super.allocated();
123 return super.valueassignableto( p_class );
129 return super.toString();
136 return ( Objects.isNull( p_prefix ) ) || ( p_prefix.length == 0 )
CMutexVariable(final String p_functor)
ctor
final synchronized boolean valueassignableto( @Nonnull final Class<?>... p_class)
checkes assignable of the value
static final long serialVersionUID
serial id
IVariable< T > set( @Nullable final T p_value)
sets the value
CMutexVariable( @Nonnull final IPath p_functor, @Nullable final T p_value)
ctor
final synchronized< N > N raw()
cast to any raw value type
IVariable< T > shallowcopy( @Nullable final IPath... p_prefix)
clones the object (shallow-copy)
CMutexVariable(final IPath p_functor)
ctor
CMutexVariable(final String p_functor, final T p_value)
ctor
T m_value
value of the variable
final IPath m_functor
variable / functor name
final synchronized IVariable< T > throwvaluenotassignableto( @Nonnull final Class<?>... p_class)
throws an illegal argument exception iif the value is not assignable to the class ...
IVariable< T > shallowcopysuffix()
clones the object (shallow-copy) without full-qualified path, only suffix is used ...
final synchronized String toString()
default variable definition
String suffix()
returns the last part of the path
final synchronized IVariable< T > thrownotallocated()
throws an illegal state exception iif the variable is not allocated
final synchronized boolean allocated()
returns allocated state
final boolean mutex()
flag to check if variable has is concurrency- / thread-safe