Replies an array of the bus halts inside this itinerary.
This function copy the internal data structures into the array.

@return an array of the bus halts inside this itinerary.
349313
@Pure
	public BusItineraryHalt[] toBusHaltArray() {
		final BusItineraryHalt[] tab = new BusItineraryHalt[this.validHalts.size() + this.invalidHalts.size()];
		int i = 0;
		for (final BusItineraryHalt h : this.validHalts) {
			tab[i] = h;
			++i;
		}
		for (final BusItineraryHalt h : this.invalidHalts) {
			tab[i] = h;
			++i;
		}
		return tab;
	}
359574
public String[] toWordArray()
    {
        List<Word> wordList = toSimpleWordList();
        String[] wordArray = new String[wordList.size()];
        Iterator<Word> iterator = wordList.iterator();
        for (int i = 0; i < wordArray.length; i++)
        {
            wordArray[i] = iterator.next().value;
        }
        return wordArray;
    }
1251599
@Pure
	public static boolean isBusStopNoHaltBindingNamesDrawable() {
		final Preferences prefs = Preferences.userNodeForPackage(BusLayerConstants.class);
		if (prefs != null) {
			return prefs.getBoolean("DRAW_NO_BUS_HALT_BIND_NAMES", DEFAULT_NO_BUS_HALT_BIND_NAMES); //$NON-NLS-1$
		}
		return DEFAULT_NO_BUS_HALT_BIND_NAMES;
	}
89512
public void removeAllBusStops() {
		for (final BusStop busStop : this.busStops) {
			busStop.removeBusHub(this);
		}
		this.busStops.clear();
		resetBoundingBox();
		firePrimitiveChanged(new BusChangeEvent(this,
				BusChangeEventType.ALL_STOPS_REMOVED,
				null,
				-1,
				null,
				null,
				null));
		checkPrimitiveValidity();
	}
758214
public int[] get() {
		if (capacity < buffer.size()) {
			capacity = buffer.size();
		}
		int[] res = buffer.toArray();
		buffer.clear(capacity);
		return res;
	}
235500
public Iterable<String[]> toArrays() {
    checkState(!isClosed, WORKBOOK_CLOSED);
    Iterable<String[]> arraysIterable = Iterables.transform(sheet, item -> {
      List<String> list = rowToList(item);
      return list.toArray(new String[list.size()]);
    });
    return hasHeader ? Iterables.skip(arraysIterable, 1) : arraysIterable;
  }
127471
public final String[] keys()
  {
    String [] keysArr = new String[m_firstFree];

    for (int i = 0; i < m_firstFree; i++)
    {
      keysArr[i] = m_map[i];
    }

    return keysArr;
  }
1063875
public void removeAllBusHalts() {

		for (final BusItineraryHalt bushalt : this.invalidHalts) {
			bushalt.setContainer(null);
			bushalt.setRoadSegmentIndex(-1);
			bushalt.setPositionOnSegment(Float.NaN);
			bushalt.checkPrimitiveValidity();
		}

		final BusItineraryHalt[] halts = new BusItineraryHalt[this.validHalts.size()];
		this.validHalts.toArray(halts);
		this.validHalts.clear();
		this.invalidHalts.clear();

		for (final BusItineraryHalt bushalt : halts) {
			bushalt.setContainer(null);
			bushalt.setRoadSegmentIndex(-1);
			bushalt.setPositionOnSegment(Float.NaN);
			bushalt.checkPrimitiveValidity();
		}

		fireShapeChanged(new BusChangeEvent(this,
				BusChangeEventType.ALL_ITINERARY_HALTS_REMOVED,
				null,
				-1,
				"shape", //$NON-NLS-1$
				null,
				null));
		checkPrimitiveValidity();
	}
554154
public int[][] paths() {
        final int[][] paths = new int[size()][];
        for (int i = 0; i < paths.length; i++)
            paths[i] = essential.get(i).path();
        return paths;
    }
628324
public java.util.List<TransitGatewayRouteTablePropagation> getTransitGatewayRouteTablePropagations() {
        if (transitGatewayRouteTablePropagations == null) {
            transitGatewayRouteTablePropagations = new com.amazonaws.internal.SdkInternalList<TransitGatewayRouteTablePropagation>();
        }
        return transitGatewayRouteTablePropagations;
    }
37365
@Pure
	public Iterable<BusHub> busHubs() {
		final BusStop busStop = getBusStop();
		if (busStop != null) {
			return busStop.busHubs();
		}
		return Collections.emptyList();
	}
939579
public java.util.List<StopRequest> getStopWorkspaceRequests() {
        if (stopWorkspaceRequests == null) {
            stopWorkspaceRequests = new com.amazonaws.internal.SdkInternalList<StopRequest>();
        }
        return stopWorkspaceRequests;
    }
1154211
@SuppressWarnings("unchecked")
	public JSONNavi<T> array() {
		if (failure)
			return this;
		if (current == null && readonly)
			failure("Can not create Array child in readonly", null);
		if (current != null) {
			if (isArray())
				return this;
			if (isObject())
				failure("can not use Object feature on Array.", null);
			failure("Can not use current possition as Object", null);
		} else {
			current = mapper.createArray();
		}
		if (root == null)
			root = (T) current;
		else
			store();
		return this;
	}
1070622
public Object[] toArray() {
    Iterator<E> iter = iterator();
    ArrayList<Object> al = new ArrayList<Object>();
    while (iter.hasNext()) {
      al.add(iter.next());
    }
    return al.toArray();
  }
908104
public OtpErlangObject[] elements() {
        if (arity() == 0) {
            return NO_ELEMENTS;
        }
        final OtpErlangObject[] res = new OtpErlangObject[arity()];
        System.arraycopy(elems, 0, res, 0, res.length);
        return res;
    }
448954
public List<Fail<Decision<T>>> getAllFail()
   {
      List<Fail<Decision<T>>> list = new ArrayList<Fail<Decision<T>>>();
      List<Node> nodeList = childNode.get("fail");
      for(Node node: nodeList)
      {
         Fail<Decision<T>>  type = new FailImpl<Decision<T>>(this, "fail", childNode, node);
         list.add(type);
      }
      return list;
   }
425266
@Pure
	public Iterable<BusItineraryHalt> busHalts() {
		final MultiCollection<BusItineraryHalt> halts = new MultiCollection<>();
		halts.addCollection(this.validHalts);
		halts.addCollection(this.invalidHalts);
		return Collections.unmodifiableCollection(halts);
	}