Tell me how to create a class as a Picasso?

To not create a class object. And immediately use his methods through the dot. Where can I read about it?

  • 2
    Without creating an object, you can only call static methods ... - pavel
  • @pavel, and what is the name of this structure? Picasso.with().load().into(); - Andro
  • You can see the source, I can assume that with () creates a class object, load loads, but why are there no parameters? - pavel
  • @pavel, they are, I did not specify simply. What is it called in java? give link pliz - Andro

1 answer 1

The principle on which Picasso Tipo class works is called the Builder pattern , which generates a design pattern in which a particular instance of a received object may have different properties.

When methods are called through a point in a few pieces, it is called a method chainig (call chain) . This method is not directly related to the Builder pattern and can be used in any classes if its methods return suitable values ​​of the type.