# JSubroutineParameters (jremote API)

Read Time: 2 minute(s)

# Class JSubroutineParameters

All Implemented Interfaces:JBaseSerializable, Serializable, Cloneable, Iterable<JDynArray>, Collection<JDynArray>, List<JDynArray>, RandomAccess


public class JSubroutineParameters
extends ArrayList<JDynArray>
implements JBaseSerializable
1
2
3

A list of parameters to pass to a jBASE subroutine.

JSubroutineParameters is based on ArrayList and its typical usage is as follows:

JSubroutineParameters subroutineParams = new JSubroutineParameters();
subroutineParams.add(new JDynArray());
subroutineParams.add(new JDynArray("two"));
subroutineParams.add(null);
subroutineParams.add(new JDynArray());
subroutineParams.add(new JDynArray("five"));
1
2
3
4
5
6

Adding null elements is permitted and the above example will provide five parameters to a subroutine.

See Also:JConnection.call(java.lang.String, com.jbase.jremote.JSubroutineParameters), Serialized Form

# Nested Class Summary

  • Nested classes/interfaces inherited from interface com.jbase.jremote.io.JBaseSerializable
    • JBaseSerializable.TYPE

# Field Summary

  • Fields inherited from class java.util.AbstractList
    • modCount

# Constructor Summary

Constructor and Description
JSubroutineParameters()

# Method Summary

Modifier and Type Method and Description
int getType()
int getVersion()
void readObject(JBaseObjectReader reader, int version)
void writeObject(JBaseObjectWriter writer, int version)
  • Methods inherited from class java.util.ArrayList
    • add, add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
  • Methods inherited from class java.util.AbstractList
    • equals, hashCode
  • Methods inherited from class java.util.AbstractCollection
    • containsAll, toString
  • Methods inherited from class java.lang.Object (opens new window)finalize, getClass, notify, notifyAll, wait, wait, wait
  • Methods inherited from interface java.util.List
    • containsAll, equals, hashCode
  • Methods inherited from interface java.util.Collection
    • parallelStream, stream

# Constructor Detail

# JSubroutineParameters

public JSubroutineParameters()
1

# Method Detail

# getType

public int getType()
1

Specified by:getType in interface JBaseSerializable
Returns:type id of the objects, used during the serialization

# getVersion

public int getVersion()
1

Specified by:getVersion in interface JBaseSerializable

# writeObject

public void writeObject(JBaseObjectWriter writer,
                        int version)
                 throws IOException
1
2
3

Specified by:writeObject in interface JBaseSerializableThrows:IOException

# readObject

public void readObject(JBaseObjectReader reader,
                       int version)
                throws IOException,
                       ClassNotFoundException
1
2
3
4

Specified by:readObject in interface JBaseSerializableThrows:IOException``ClassNotFoundException

Back to jRemote API