Class DefaultServer.FilterAdapter

java.lang.Object
com.jme3.network.base.DefaultServer.FilterAdapter
All Implemented Interfaces:
Filter<Endpoint>
Enclosing class:
DefaultServer

protected class DefaultServer.FilterAdapter extends Object implements Filter<Endpoint>
Adapts hosted-connection filters to endpoint filters.
Author:
Paul Speed
  • Constructor Details

    • FilterAdapter

      public FilterAdapter(Filter<? super HostedConnection> delegate)
      Creates a filter adapter.
      Parameters:
      delegate - the hosted-connection filter to delegate to
  • Method Details

    • apply

      public boolean apply(Endpoint input)
      Description copied from interface: Filter
      Returns true if the specified input is accepted by this filter.
      Specified by:
      apply in interface Filter<Endpoint>
      Parameters:
      input - the value to test
      Returns:
      true if the input is accepted