com.sap.ip.me.api.services
Interface InstanceIdProvider

All Known Implementing Classes:
AttributeType

public interface InstanceIdProvider

Author:
I027552 All classes that implement this class must comply to the following contract: - Every intstance of a class must have a unique id represented by a final int attribute. - The class provides access to this id by implementing the method getInstanceId() - The implementation of this method must be final to prevent inheriting classes from overwriting. - All different values returned by instances of the class must be dense (in other words, no number gaps are allowed) - The values must start with 0 and increment in steps of 1, reflecting the order of instanciation - The class provides access to the highest instance id that has been assigned to any of its instances with the method getMaxInstanceId(). To implement this, access to a static class attribute is required.

Method Summary
 int getInstanceId()
           
 

Method Detail

getInstanceId

public int getInstanceId()


Copyright © 2005 SAP AG. All Rights Reserved.