class PlatformLocalEventListener implements IgnitePredicate<Event> {
    /** */
    private static final long serialVersionUID = 0L;
    
    /** Listener id. */
    private final int id;

    /** Ignite. */
    @SuppressWarnings("unused")
    @IgniteInstanceResource
    private transient Ignite ignite;

    /**
     * Constructor.
     *
     * @param id Listener id.
     */
    public PlatformLocalEventListener(int id) {
        this.id = id;
    }

    /** {@inheritDoc} */
    @Override public boolean apply(Event evt) {<FILL_FUNCTION_BODY>}

    /** {@inheritDoc} */
    @Override public boolean equals(Object o) {
        return this == o || o != null && getClass() == o.getClass() && id == ((PlatformLocalEventListener)o).id;
    }

    /** {@inheritDoc} */
    @Override public int hashCode() {
        return id;
    }
}

        assert ignite != null;

        PlatformContext ctx = PlatformUtils.platformContext(ignite);

        assert ctx != null;

        try (PlatformMemory mem = ctx.memory().allocate()) {
            PlatformOutputStream out = mem.output();

            BinaryRawWriterEx writer = ctx.writer(out);

            writer.writeInt(id);

            ctx.writeEvent(writer, evt);

            out.synchronize();

            long res = ctx.gateway().eventLocalListenerApply(mem.pointer());

            return res != 0;
        }
    
<no_super_class>