PlatformObject INTERFACE

An interface used to mark a mapped platform type so that certain platform members can be implemented here. Useful when explicitly defining Object methods, such as toString(), which may have the same name as a member on platform Object. The explicitly defined methods can then call these methods.

These methods must not be implemented explicitly. The engine will automatically implement them when loading a type marked by this interface. For more information about its usage, see tutorial.

All Members


TypeNameSignature
methodpfEqualspublic bool pfEquals(Object)
methodpfHashCodepublic int pfHashCode()
methodpfToStringpublic String pfToString()

Methods


public bool pfEquals(Object val)

The delegating method to call equals(Object) defined on the platform class.

Parameters

  • val The object to compare with. If the argument is not a mapped object this method will return false; otherwise it delegates that to the equals(Object) method defined on the platform class.

Returns

  • True if the argument is considered equal to this one.

public int pfHashCode()

The delegating method to call hashcode() defined on the platform class.

Returns

  • An integer calculated from the platform object.

public String pfToString()

The delegating method to call toString() defined on the platform class.

Returns

  • The string representation of the platform object.