net.m2technologies.open_arm.transaction
Class ArmTokenImpl

java.lang.Object
  extended bynet.m2technologies.open_arm.transaction.ArmInterfaceImpl
      extended bynet.m2technologies.open_arm.transaction.ArmTokenImpl
All Implemented Interfaces:
ArmInterface, ArmToken
Direct Known Subclasses:
ArmCorrelatorImpl, ArmIdImpl, ArmSystemAddressImpl

public abstract class ArmTokenImpl
extends ArmInterfaceImpl
implements ArmToken

Copyright 2005 Mark Masterson

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Description:

Version:
0.009
Author:
Mark Masterson

Field Summary
 
Fields inherited from class net.m2technologies.open_arm.transaction.ArmInterfaceImpl
HASH_CODE_MAGIC_NUMBER
 
Constructor Summary
protected ArmTokenImpl(byte[] bytes, ArmTransactionFactory creatingFactory)
           
protected ArmTokenImpl(RandomGUID guid, ArmTransactionFactory creatingFactory)
           
 
Method Summary
 boolean copyBytes(byte[] dest)
           
 boolean copyBytes(byte[] dest, int offset)
           
 boolean equals(java.lang.Object o)
           
protected  void finalize()
           
 byte[] getBytes()
           
protected  RandomGUID getGuid()
           
 int getLength()
           
 int hashCode()
           
 
Methods inherited from class net.m2technologies.open_arm.transaction.ArmInterfaceImpl
getCreatingFactory, getErrorCode, getErrorMessage, setErrorCode, toString
 
Methods inherited from class java.lang.Object
clone, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.opengroup.arm40.transaction.ArmInterface
getErrorCode, getErrorMessage, setErrorCode
 

Constructor Detail

ArmTokenImpl

protected ArmTokenImpl(byte[] bytes,
                       ArmTransactionFactory creatingFactory)

ArmTokenImpl

protected ArmTokenImpl(RandomGUID guid,
                       ArmTransactionFactory creatingFactory)
Method Detail

finalize

protected void finalize()
                 throws java.lang.Throwable
Throws:
java.lang.Throwable

getGuid

protected RandomGUID getGuid()

copyBytes

public boolean copyBytes(byte[] dest)
Specified by:
copyBytes in interface ArmToken

copyBytes

public boolean copyBytes(byte[] dest,
                         int offset)
Specified by:
copyBytes in interface ArmToken

getBytes

public byte[] getBytes()
Specified by:
getBytes in interface ArmToken

getLength

public int getLength()
Specified by:
getLength in interface ArmToken

equals

public boolean equals(java.lang.Object o)

hashCode

public int hashCode()