Jump to content
View in the app

A better way to browse. Learn more.

OSBot :: 2007 OSRS Botting

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

OSBot 2.2.40 - A little bit of everything

Featured Replies

Changelog:

-Added Utilities method textToBoolean(String)
-Added Utilities method booleanToText(Boolean)

 

 

Umm....

booleanToText(Boolean) == (Boolean.toString(Boolean) || (Boolean+""))

textToBoolean(String) == Boolean.parseBoolean("true");

  • Author

Umm....

booleanToText(Boolean) == (Boolean.toString(Boolean) || (Boolean+""))

textToBoolean(String) == Boolean.parseBoolean("true");

 

parseBoolean uses equalsIgnoreCase and I wanted to make matching methods. If it's really that big of a deal I can remove it. Just figured I would make a small private method public.

 

From the API:

cf0ca505220534382dab3ef91dac0594.png

 

It's pretty much identical..

parseBoolean uses equalsIgnoreCase and I wanted to make matching methods. If it's really that big of a deal I can remove it. Just figured I would make a small private method public.

 

You need to look at the default method first. Your method is completely redundant.

 

d9db3d9456.png

  • Author

Read my post above yours, I edited it. I know what the default method looks like, that's why I made mine. If it's really that big of a problem I'll just make it private again.

Read my post above yours, I edited it. I know what the default method looks like, that's why I made mine. If it's really that big of a problem I'll just make it private again.

 

I'm not saying that it is a problem, just useless at best. There is no reason for it to public or even be private for that matter, when you can achieve the same by using the default methods, with the added benefit of less lines of code.

 

Not trying to put you down, just being a critic.

  • Author

I'm not saying that it is a problem, just useless at best. There is no reason for it to public or even be private for that matter, when you can achieve the same by using the default methods, with the added benefit of less lines of code.

 

Not trying to put you down, just being a critic.

 

booleanToText is identical, but it was only to match textToBoolean. I wanted to assess that the string was in fact "true" without manipulation. Therefore putting it to lowercase first or toString() wasn't viable. The only reason why I mentioned it is because all API additions/changes go into the changelog. 

 

For the average person yes, it's really not needed.

 

Edit: I'll update API documentation to make it a little bit less confusing and remove booleanToText on the next update.

Very nice. Good work Alek.

Question is: worth updating?

Guest
This topic is now closed to further replies.

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.