Sha256: 6976453dc5bba35b0554eaa68c961d1cdc117b58e3dbdc924d6dd17fceed9d80
Contents?: true
Size: 663 Bytes
Versions: 17
Compression:
Stored size: 663 Bytes
Contents
package com.rhomobile.rhodes.api; public abstract class RhoApiDefaultId<IApi extends IRhoApiObject, IFactory extends IRhoApiFactory<IApi> > implements IRhoApiDefaultId { private IFactory mFactory; private IApi mDefault; public RhoApiDefaultId(IFactory factory) { mFactory = factory; } public String getDefaultID() { if (mDefault == null) { mDefault = mFactory.getApiObject(getInitialDefaultID()); } return mDefault.getId(); } public void setDefaultID(final String id) { mDefault = mFactory.getApiObject(id); } protected abstract String getInitialDefaultID(); }
Version data entries
17 entries across 17 versions & 2 rubygems