@Test(expected = IllegalArgumentException.class) public void multipleAddFeatureOnTheSameUUIDThrowAnException(){ UUID uuidA = UUID.randomUUID(); Class<? extends Feature> featureClassA = FeatureMagnetometer.class; Class<? extends Feature> featureClassB = FeatureMagnetometer.class; ConnectionOption opt = ConnectionOption.builder() .addFeature(uuidA, featureClassA) .addFeature(uuidA, featureClassB) .build(); }
public static ConnectionOptionBuilder builder(){ return new ConnectionOptionBuilder(); }
ConnectionOption implements Parcelable { public static ConnectionOptionBuilder builder(){ return new ConnectionOptionBuilder(); } }
ConnectionOption implements Parcelable { public static ConnectionOptionBuilder builder(){ return new ConnectionOptionBuilder(); } private  ConnectionOption(Parcel in); private  ConnectionOption(boolean resetCache, boolean enableAutoConnect,
                             @Nullable Map<UUID, List<Class<? extends Feature>>> userDefineFeature); }
ConnectionOption implements Parcelable { public static ConnectionOptionBuilder builder(){ return new ConnectionOptionBuilder(); } private  ConnectionOption(Parcel in); private  ConnectionOption(boolean resetCache, boolean enableAutoConnect,
                             @Nullable Map<UUID, List<Class<? extends Feature>>> userDefineFeature); static ConnectionOptionBuilder builder(); static ConnectionOption buildDefault(); boolean enableAutoConnect(); boolean resetCache(); @Nullable Map<UUID, List<Class<? extends Feature>>> getUserDefineFeature(); @Override int describeContents(); @Override void writeToParcel(Parcel dest, int flags); }
ConnectionOption implements Parcelable { public static ConnectionOptionBuilder builder(){ return new ConnectionOptionBuilder(); } private  ConnectionOption(Parcel in); private  ConnectionOption(boolean resetCache, boolean enableAutoConnect,
                             @Nullable Map<UUID, List<Class<? extends Feature>>> userDefineFeature); static ConnectionOptionBuilder builder(); static ConnectionOption buildDefault(); boolean enableAutoConnect(); boolean resetCache(); @Nullable Map<UUID, List<Class<? extends Feature>>> getUserDefineFeature(); @Override int describeContents(); @Override void writeToParcel(Parcel dest, int flags); static final Creator<ConnectionOption> CREATOR; }