Questions tagged [chain]

Use the tag "method-chaining' if referring to the invocation of multiple methods against a single object. Chaining is the general idea of linking many smaller processes together to form a large process.

Method Chaining allows you to run multiple methods against an object on one line of code.

For example in Java the methods setName and setAge are chained:

Person person = new Person();        //instantiate a new person object.
person.setName("Peter").setAge(21);  //set the name, and age of object person.

First the method setName is applied to the object, then setAge.

Each method returns an object, allowing any number of calls to be chained together in a single statement.

561 questions
-4
votes
1 answer

in python sort the values of a dictionary in order of connection

I tried to find a solution. Perhaps my words are bad chosen. Sorry for my english. I have a dictionary. Each key has two values all the keys have common values, except for two. you'll understand, it's a chain. Now, I know I can't order a…
-4
votes
1 answer

C# Custom Chain, Add CRC bytes

I want to write a Method chain to add CRC ( 2 byte ) with byte[]. with internet source, I write this . but not work... with less knowledge,I do not know why... Please help me.. public byte[] AddCrc(this byte[] x) { if (x == null) throw new…
Kazuhiko Nakayama
  • 801
  • 1
  • 8
  • 24
-4
votes
1 answer

Isolate a non duplicate of a chain separated by "," from another longer chain in VBA

For example if in the celle A1 you have: 1, 2, 3, 4 ,5 ,6 ,7 ,8 ,9 And in A2 you have: 1, 3, 6 ,9 , 15 I would like to find a VBA function F which will do that: F(A1; A2)= 15, what it means that it will give the only character which is not in the…
nilmar4
  • 1
  • 3
-4
votes
3 answers

Jquery Chaining on different link

Basically what I want to achieve is when I mouseenter the "first a" link, the link on the second will turn red, when I mouseout it should return to blue, but I cant seem to target it using $('this'). $('body').on('mouseenter', '.shareButtonsWrapper…
Vincent Chua
  • 969
  • 6
  • 20
  • 41
-5
votes
4 answers

How to chain dropdown boxes using PHP and MYSQL?

This is my db: [tblset] | [tblyear] | [tbl_coursetype] ID, setname, setyear, setcours | ID, YearName | course_no, course_desc ------------------------------ | ---------------- | ----------------------- 1 …
RoyalRyt
  • 25
  • 1
  • 8
1 2 3
37
38