Skip to content

Brad Cypert

  • About
  • Contact
  • Resume
  • Apps
    • Image2Text
      • Available on Google Play
      • Image2Text Privacy Policy

Tag: static

Static Methods, Companion Objects, and Testing

July 18, 2018October 23, 2018

A companion object sits inside a class definition and houses all the static methods which that class will own. Let’s convert a piece of Java code to Kotlin so you can see what I mean.

Posted in KotlinTagged companion object, Kotlin, static, testing

Recent Posts

  • The Complete Guide to Dimensions in Android
  • PHP: Add to an Array
  • Formatter Objects: Testable Fragments
  • What you need to know about the Gilded Rose interview problem
  • The Facade Pattern for Simple Dependency Injection

Posts by tag

android Ansible API Async beginner-friendly buddy Clojure Developer Tools DevOps Eloquent FlowRouter Functional Programming Generators Ginger H2 ionic Iron:Router java JavaScript json web tokens JVM jwt Kotlin ktor list adapter listview Macros map meta metaprogramming Meteor Microservice mobile multimethods nlp PHP pmap Python recyclerview reflection REST RESTful Scala testing zero-to-hero
© 2019 Brad Cypert • Slightly Theme by Nick Ciliak.