Android Open Source - wherewithal Sarray






From Project

Back to project page wherewithal.

License

The source code is released under:

GNU General Public License

If you think the Android project wherewithal listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.curchod.domartin;
//from www  .j a  va 2  s .  co m
import java.util.ArrayList;

/**
 Sarray is a convenience class designed to make ArrayList methods consistent 
 with Vector.    Why did Sun not do this??
 Made by Gregory Bradford with an additional example by Luke T. Gilbert 
 (http://www.airporttools.com/other/programming/hashsorting/index.html)
*/
public class Sarray extends ArrayList
{
  private int last_index = 0;


  public int length ()
  {
    return ( size ( ) );
  }

  public Object elementAt ( int index )
  {
    last_index = index;
    return ( get ( index ) );
  }

  public void addElement ( Object o )
  {
    add ( o );
  }

  /** Sets the last index requested to the supplied value.*/
  public void setLastIndex(int value)
  {
    last_index = value;
  }

  /** Returns the last index requested by the elementAt method.*/
  public int getLastIndex()
  {
    return ( last_index );
  }
  
  /** Make compatible with Vector.*/
  public void removeElementAt ( int index )
  {
    remove ( index );
  }

  /** Make compatible with Vector.*/
  public void removeElement ( Object obj )
  {
    int index = indexOf ( obj );
    if ( index > -1 ) remove ( index );
  }
  
}




Java Source Code List

com.curchod.domartin.AsyncLoadGameFile.java
com.curchod.domartin.Constants.java
com.curchod.domartin.Filer.java
com.curchod.domartin.HouseDeck.java
com.curchod.domartin.IWantTo.java
com.curchod.domartin.MockNdefMessages.java
com.curchod.domartin.NfcUtils.java
com.curchod.domartin.RemoteCall.java
com.curchod.domartin.Sarray.java
com.curchod.domartin.Scoring.java
com.curchod.domartin.TagDescription.java
com.curchod.domartin.UtilityTo.java
com.curchod.dto.Card.java
com.curchod.dto.DeckCard.java
com.curchod.dto.GameWord.java
com.curchod.dto.Game.java
com.curchod.dto.PlayerInfo.java
com.curchod.dto.SavedTest.java
com.curchod.dto.SingleWordTestResult.java
com.curchod.dto.SingleWord.java
com.curchod.json.VocabularyDefinition.java
com.curchod.json.VocabularyLearningObject.java
com.curchod.wherewithal.AddPlayerActivity.java
com.curchod.wherewithal.CardDeckActivity.java
com.curchod.wherewithal.CardDecksActivity.java
com.curchod.wherewithal.CardPlayerHouseDeckActivity.java
com.curchod.wherewithal.CardPlayerWordsActivity.java
com.curchod.wherewithal.CardPlayersListActivity.java
com.curchod.wherewithal.CardsActivity.java
com.curchod.wherewithal.GameConcentrationActivity.java
com.curchod.wherewithal.GameReadingStonesActivity.java
com.curchod.wherewithal.GameReadingStonesInstructionsActivity.java
com.curchod.wherewithal.GameSnazzyThumbworkActivity.java
com.curchod.wherewithal.GameWritingStonesActivity.java
com.curchod.wherewithal.GamesActivity.java
com.curchod.wherewithal.InstructionsActivity.java
com.curchod.wherewithal.MainActivity.java
com.curchod.wherewithal.PlayerActivity.java
com.curchod.wherewithal.PlayersActivity.java