title: Strategy pattern, is this correct
body: <p>In the strategy pattern is it ok to only do some of the logic in the strategy and skill keep some on my own code, will it still be the strategy pattern?</p>
  
  <p>Example: i use the strategy pattern to influence how elements are ordered in my Doubly linked list.
  What i have done is simply to make the strategy pattern indicated if it wish to be inserted after a given element, and then loop all elements though, and then insert the new element before the element that made the strategy pattern send false back.</p>
  
  <p>Or must all sorting be done in the strategy patter for it to be a "PURE" strategy pattern?</p>
  
  <pre><code>public interface IInsertStrategy&lt;T&gt; {
  public boolean insertAfter(T insertValue, T testValue);
  }
  </code></pre>
  
  <p>And the add code</p>
  
  <pre><code>public void add(T value)
  {
      DoublyLinkedNode&lt;T&gt; workingNode = head;
  
      // Loop though nodes, to and with the tail
      while(workingNode.next != null)
      {
          workingNode = workingNode.next;
          /* Keep going until the strategy is not true any more
           * or until we have the last node. */
          if(workingNode.next == null ||
              !insertStrategy.insertAfter(value, workingNode.value))
          {
              workingNode.previous.append(value);
              break;
          }
      }
  }
  </code></pre>