@Test(expected = IllegalStateException.class) public void testDefaultLocked_setAdapterFactory() { SocketIoServerOptions.DEFAULT.setAdapterFactory(null); }
public SocketIoServerOptions setAdapterFactory(SocketIoAdapter.AdapterFactory adapterFactory) throws IllegalStateException { if (mIsLocked) { throw new IllegalStateException("Adapter factory cannot be set. Instance is locked."); } if (adapterFactory == null) { adapterFactory = MEMORY_ADAPTER_FACTORY; } mAdapterFactory = adapterFactory; return this; }
SocketIoServerOptions { public SocketIoServerOptions setAdapterFactory(SocketIoAdapter.AdapterFactory adapterFactory) throws IllegalStateException { if (mIsLocked) { throw new IllegalStateException("Adapter factory cannot be set. Instance is locked."); } if (adapterFactory == null) { adapterFactory = MEMORY_ADAPTER_FACTORY; } mAdapterFactory = adapterFactory; return this; } }
SocketIoServerOptions { public SocketIoServerOptions setAdapterFactory(SocketIoAdapter.AdapterFactory adapterFactory) throws IllegalStateException { if (mIsLocked) { throw new IllegalStateException("Adapter factory cannot be set. Instance is locked."); } if (adapterFactory == null) { adapterFactory = MEMORY_ADAPTER_FACTORY; } mAdapterFactory = adapterFactory; return this; } private  SocketIoServerOptions(); }
SocketIoServerOptions { public SocketIoServerOptions setAdapterFactory(SocketIoAdapter.AdapterFactory adapterFactory) throws IllegalStateException { if (mIsLocked) { throw new IllegalStateException("Adapter factory cannot be set. Instance is locked."); } if (adapterFactory == null) { adapterFactory = MEMORY_ADAPTER_FACTORY; } mAdapterFactory = adapterFactory; return this; } private  SocketIoServerOptions(); static SocketIoServerOptions newFromDefault(); SocketIoAdapter.AdapterFactory getAdapterFactory(); SocketIoServerOptions setAdapterFactory(SocketIoAdapter.AdapterFactory adapterFactory); void lock(); }
SocketIoServerOptions { public SocketIoServerOptions setAdapterFactory(SocketIoAdapter.AdapterFactory adapterFactory) throws IllegalStateException { if (mIsLocked) { throw new IllegalStateException("Adapter factory cannot be set. Instance is locked."); } if (adapterFactory == null) { adapterFactory = MEMORY_ADAPTER_FACTORY; } mAdapterFactory = adapterFactory; return this; } private  SocketIoServerOptions(); static SocketIoServerOptions newFromDefault(); SocketIoAdapter.AdapterFactory getAdapterFactory(); SocketIoServerOptions setAdapterFactory(SocketIoAdapter.AdapterFactory adapterFactory); void lock(); static final SocketIoServerOptions DEFAULT; }