Xj3D 2.0 VRML/X3D Code API

org.web3d.vrml.nodes.proto
Class ProtoFieldInfo

java.lang.Object
  extended by org.web3d.vrml.nodes.proto.ProtoFieldInfo

public class ProtoFieldInfo
extends java.lang.Object

Convenience data holder to keep a node and field value together.

Principally used for IS mapping and is held as package only access.

Version:
$Revision: 1.4 $
Author:
Justin Couch

Field Summary
 int field
          Index of the field in that node
 VRMLNodeType node
          Reference to the destination node
 
Constructor Summary
ProtoFieldInfo(VRMLNodeType n, int f)
          Convenience constructor to create a class instance and assign the values immediately in one action.
 
Method Summary
 boolean equals(java.lang.Object obj)
          Check for equivalence between this class and another one.
 int hashCode()
          Get the hash value for the class for use in data structures like hash maps.
 java.lang.String toString()
          Return a String representation of this class.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

node

public final VRMLNodeType node
Reference to the destination node


field

public final int field
Index of the field in that node

Constructor Detail

ProtoFieldInfo

public ProtoFieldInfo(VRMLNodeType n,
                      int f)
Convenience constructor to create a class instance and assign the values immediately in one action.

Parameters:
n - The node to use
f - The field index
Method Detail

toString

public java.lang.String toString()
Return a String representation of this class.

Overrides:
toString in class java.lang.Object
Returns:
A string with details of this class

hashCode

public int hashCode()
Get the hash value for the class for use in data structures like hash maps.

Overrides:
hashCode in class java.lang.Object
Returns:
A hash key uniquely identifying this class

equals

public boolean equals(java.lang.Object obj)
Check for equivalence between this class and another one.

Overrides:
equals in class java.lang.Object
Parameters:
obj - The class to check against
Returns:
true If the two classes represent the same thing

Xj3D 2.0 VRML/X3D Code API

Copyright © 2001 - 2006 Web3D Consortium