Skip to content

Commit 79423cd

Browse files
author
Max Presman
committed
remove final methods from public facing API
1 parent 63407b0 commit 79423cd

1 file changed

Lines changed: 35 additions & 35 deletions

File tree

‎src/main/java/com/pubnub/api/PubNub.java‎

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -75,99 +75,99 @@ public String getBaseUrl() {
7575

7676

7777
//
78-
public final void addListener(SubscribeCallback listener) {
78+
public void addListener(SubscribeCallback listener) {
7979
subscriptionManager.addListener(listener);
8080
}
8181

82-
public final void removeListener(SubscribeCallback listener) {
82+
public void removeListener(SubscribeCallback listener) {
8383
subscriptionManager.removeListener(listener);
8484
}
8585

86-
public final SubscribeBuilder subscribe() {
86+
public SubscribeBuilder subscribe() {
8787
return new SubscribeBuilder(this.subscriptionManager);
8888
}
8989

90-
public final UnsubscribeBuilder unsubscribe() {
90+
public UnsubscribeBuilder unsubscribe() {
9191
return new UnsubscribeBuilder(this.subscriptionManager);
9292
}
9393

9494
// start push
9595

96-
public final AddChannelsToPush addPushNotificationsOnChannels() {
96+
public AddChannelsToPush addPushNotificationsOnChannels() {
9797
return new AddChannelsToPush(this, this.retrofitManager.getTransactionInstance());
9898
}
9999

100-
public final RemoveChannelsFromPush removePushNotificationsFromChannels() {
100+
public RemoveChannelsFromPush removePushNotificationsFromChannels() {
101101
return new RemoveChannelsFromPush(this, this.retrofitManager.getTransactionInstance());
102102
}
103103

104-
public final RemoveAllPushChannelsForDevice removeAllPushNotificationsFromDeviceWithPushToken() {
104+
public RemoveAllPushChannelsForDevice removeAllPushNotificationsFromDeviceWithPushToken() {
105105
return new RemoveAllPushChannelsForDevice(this, this.retrofitManager.getTransactionInstance());
106106
}
107107

108-
public final ListPushProvisions auditPushChannelProvisions() {
108+
public ListPushProvisions auditPushChannelProvisions() {
109109
return new ListPushProvisions(this, this.retrofitManager.getTransactionInstance());
110110
}
111111

112112
// end push
113113

114-
public final WhereNow whereNow() {
114+
public WhereNow whereNow() {
115115
return new WhereNow(this, this.retrofitManager.getTransactionInstance());
116116
}
117117

118-
public final HereNow hereNow() {
118+
public HereNow hereNow() {
119119
return new HereNow(this, this.retrofitManager.getTransactionInstance());
120120
}
121121

122-
public final Time time() {
122+
public Time time() {
123123
return new Time(this, this.retrofitManager.getTransactionInstance());
124124
}
125125

126-
public final History history() {
126+
public History history() {
127127
return new History(this, this.retrofitManager.getTransactionInstance());
128128
}
129129

130-
public final FetchMessages fetchMessages() {
130+
public FetchMessages fetchMessages() {
131131
return new FetchMessages(this, this.retrofitManager.getTransactionInstance());
132132
}
133133

134-
public final Audit audit() {
134+
public Audit audit() {
135135
return new Audit(this, this.retrofitManager.getTransactionInstance());
136136
}
137137

138-
public final Grant grant() {
138+
public Grant grant() {
139139
return new Grant(this, this.retrofitManager.getTransactionInstance());
140140
}
141141

142-
public final GetState getPresenceState() {
142+
public GetState getPresenceState() {
143143
return new GetState(this, this.retrofitManager.getTransactionInstance());
144144
}
145145

146-
public final SetState setPresenceState() {
146+
public SetState setPresenceState() {
147147
return new SetState(this, subscriptionManager, this.retrofitManager.getTransactionInstance());
148148
}
149149

150-
public final Publish publish() {
150+
public Publish publish() {
151151
return new Publish(this, publishSequenceManager, this.retrofitManager.getTransactionInstance());
152152
}
153153

154-
public final ListAllChannelGroup listAllChannelGroups() {
154+
public ListAllChannelGroup listAllChannelGroups() {
155155
return new ListAllChannelGroup(this, this.retrofitManager.getTransactionInstance());
156156
}
157157

158-
public final AllChannelsChannelGroup listChannelsForChannelGroup() {
158+
public AllChannelsChannelGroup listChannelsForChannelGroup() {
159159
return new AllChannelsChannelGroup(this, this.retrofitManager.getTransactionInstance());
160160
}
161161

162-
public final AddChannelChannelGroup addChannelsToChannelGroup() {
162+
public AddChannelChannelGroup addChannelsToChannelGroup() {
163163
return new AddChannelChannelGroup(this, this.retrofitManager.getTransactionInstance());
164164
}
165165

166-
public final RemoveChannelChannelGroup removeChannelsFromChannelGroup() {
166+
public RemoveChannelChannelGroup removeChannelsFromChannelGroup() {
167167
return new RemoveChannelChannelGroup(this, this.retrofitManager.getTransactionInstance());
168168
}
169169

170-
public final DeleteChannelGroup deleteChannelGroup() {
170+
public DeleteChannelGroup deleteChannelGroup() {
171171
return new DeleteChannelGroup(this, this.retrofitManager.getTransactionInstance());
172172
}
173173

@@ -179,7 +179,7 @@ public final DeleteChannelGroup deleteChannelGroup() {
179179
* @param inputString String to be encrypted
180180
* @return String containing the encryption of inputString using cipherKey
181181
*/
182-
public final String decrypt(String inputString) throws PubNubException {
182+
public String decrypt(String inputString) throws PubNubException {
183183
if (inputString == null) {
184184
throw PubNubException.builder().pubnubError(PubNubErrorBuilder.PNERROBJ_INVALID_ARGUMENTS).build();
185185
}
@@ -195,7 +195,7 @@ public final String decrypt(String inputString) throws PubNubException {
195195
* @return String containing the encryption of inputString using cipherKey
196196
* @throws PubNubException throws exception in case of failed encryption
197197
*/
198-
public final String decrypt(final String inputString, final String cipherKey) throws PubNubException {
198+
public String decrypt(String inputString, String cipherKey) throws PubNubException {
199199
if (inputString == null) {
200200
throw PubNubException.builder().pubnubError(PubNubErrorBuilder.PNERROBJ_INVALID_ARGUMENTS).build();
201201
}
@@ -209,7 +209,7 @@ public final String decrypt(final String inputString, final String cipherKey) th
209209
* @param inputString String to be encrypted
210210
* @return String containing the encryption of inputString using cipherKey
211211
*/
212-
public final String encrypt(final String inputString) throws PubNubException {
212+
public String encrypt(String inputString) throws PubNubException {
213213
if (inputString == null) {
214214
throw PubNubException.builder().pubnubError(PubNubErrorBuilder.PNERROBJ_INVALID_ARGUMENTS).build();
215215
}
@@ -225,7 +225,7 @@ public final String encrypt(final String inputString) throws PubNubException {
225225
* @return String containing the encryption of inputString using cipherKey
226226
* @throws PubNubException throws exception in case of failed encryption
227227
*/
228-
public final String encrypt(final String inputString, final String cipherKey) throws PubNubException {
228+
public String encrypt(String inputString, String cipherKey) throws PubNubException {
229229
if (inputString == null) {
230230
throw PubNubException.builder().pubnubError(PubNubErrorBuilder.PNERROBJ_INVALID_ARGUMENTS).build();
231231
}
@@ -262,45 +262,45 @@ public String getVersion() {
262262
* Stop the SDK and terminate all listeners.
263263
*/
264264
@Deprecated
265-
public final void stop() {
265+
public void stop() {
266266
subscriptionManager.stop();
267267
}
268268

269269
/**
270270
* Destroy the SDK to evict the connection pools.
271271
*/
272-
public final void destroy() {
272+
public void destroy() {
273273
subscriptionManager.destroy();
274274
retrofitManager.destroy();
275275
}
276276

277277
/**
278278
* Perform a Reconnect to the network
279279
*/
280-
public final void reconnect() {
280+
public void reconnect() {
281281
subscriptionManager.reconnect();
282282
}
283283

284284
/**
285285
* Perform a disconnect from the listeners
286286
*/
287-
public final void disconnect() {
287+
public void disconnect() {
288288
subscriptionManager.disconnect();
289289
}
290290

291-
public final Publish fire() {
291+
public Publish fire() {
292292
return publish().shouldStore(false).replicate(false);
293293
}
294294

295-
public final List<String> getSubscribedChannels() {
295+
public List<String> getSubscribedChannels() {
296296
return subscriptionManager.getSubscribedChannels();
297297
}
298298

299-
public final List<String> getSubscribedChannelGroups() {
299+
public List<String> getSubscribedChannelGroups() {
300300
return subscriptionManager.getSubscribedChannelGroups();
301301
}
302302

303-
public final void unsubscribeAll() {
303+
public void unsubscribeAll() {
304304
subscriptionManager.unsubscribeAll();
305305
}
306306
}

0 commit comments

Comments
 (0)